On Wed, Dec 22, 2010 at 5:54 PM, optimusgeek <[email protected]> wrote: > I use CountDownTimer for counting 24hours with 1minute interval.
Why? > but It seems that the onTick() not called when device in deep sleep. Of course not. Users actually like their phones to work. Phones run on batteries. Batteries run out when the CPU has to stay on all the time because somebody thinks using "CountDownTimer for counting 24hours with 1minute interval" is a good idea. > When I check the millisUntilFinished value after activating device, > The value was not match first but after few seconds, It show correct > value. CountDownTimer will correct itself shortly after the device wakes up. > I think, when device in deep sleep, handle message from CountDownTimer > delayed, and if device activated, the last message of CountDownTimer > sent. More or less, this is correct. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.9 Available! -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

