Wednesday, December 22, 2010

[android-developers] Re: CountDownTimer doen't work during device in deep sleep?

Consider using AlarmManager.

On 23 дек, 01:54, optimusgeek <choongb...@gmail.com> wrote:
> I use CountDownTimer for counting 24hours with 1minute interval.
> but It seems that the onTick() not called when device in deep sleep.
> When I check the millisUntilFinished value after activating device,
> The value was not match first but after few seconds, It show correct
> value.
> I think, when device in deep sleep, handle message from CountDownTimer
> delayed, and if device activated, the last message of CountDownTimer
> sent.
> and after that the millisUntilFinished value is updated.
>
> Any solution for it? I have to use the CountDownTimer, because I need
> to get the millisUntilFinished value in every 1 minute.

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment