All this document says is that when Android goes to sleep, it calls onPause(). But that does not tell what ELSE Android does when it "goes to sleep".
For that matter, the same doc says that onPause() is also called when another app takes the foreground, so the application developer cannot even rely on a call to onPause() as a sure indicator that Android is going to sleep. Now I realize that the details of what it does when it goes to sleep and wakes up might be subject to change w/o notice, but even so, it is easy to see that the developer often needs to know more than just what that one doc says about sleep and onPause(). A developer also needs to know, for example, that Alarms are still checked while the phone is asleep, and can wake up the phone. On May 4, 10:56 am, Justin Anderson <[email protected]> wrote: > http://developer.android.com/guide/topics/fundamentals.html#actlife > > ---------------------------------------------------------------------- > There are only 10 types of people in the world... > Those who know binary and those who don't. > ---------------------------------------------------------------------- > > > > On Tue, May 4, 2010 at 8:29 AM, Michael Dorin <[email protected]> wrote: > > Exactly what happens to your activity when android goes to sleep? > > Either via the power button or letting it sit idle? > > > Sometimes my app does not wake up nicely...It even crashes giving > > a register dump...other times it seems to be 'half awake'. > > > What methods are invoked? I don't seem to see onCreate or onResume > > being called as I log those..unless I am missing something > > > Thanks, > > > -Mike > > > -- > > You received this message because you are subscribed to the Google > > Groups "Android Beginners" group. > > > NEW! Try asking and tagging your question on Stack Overflow at > >http://stackoverflow.com/questions/tagged/android > > > To unsubscribe from this group, send email to > > [email protected]<android-beginners%[email protected]> > > For more options, visit this group at > >http://groups.google.com/group/android-beginners?hl=en > > -- > You received this message because you are subscribed to the Google > Groups "Android Beginners" group. > > NEW! Try asking and tagging your question on Stack Overflow > athttp://stackoverflow.com/questions/tagged/android > > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group > athttp://groups.google.com/group/android-beginners?hl=en -- You received this message because you are subscribed to the Google Groups "Android Beginners" group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en

