What happens to runnables scheduled with postDelayed when the phone goes to sleep? Having pending handlers does not seem to prevent the phone from sleeping, but what should happen once it wakes up again. Is the sleep period like a lapse of lost time and the delay clock keeps counting down as if the sleep never happened or are all handlers which would have expired during the time the phone was asleep going to fire immediately?
I am also seeing some strange stuff, when I use postDelayed to periodically update a display and the screen lock is engaged (without the phone going to sleep yet, as far as I can tell). Once the phone is unlocked, the UI seems to go into some sort of fast-forward. Is this due to the handlers firing more rapidly (only one is re-scheduled at a time, so this would be rather strange) or some kind of queued update events to the display which are executed once the screen is unlocked. I guess one should generally never do any UI updates after onPause(), but there is nothing preventing it... Bernhard --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

