Hi Murphy, Thanks for the reply. Will the data connection over 3G/GPRS keep alive when the CPU sleep? Will the CPU be waked up when there is data transmition on the data connection?
James 2009/9/16 Mark Murphy <mmur...@commonsware.com> > > Yusuf Saib (T-Mobile USA) wrote: > > Activity.onDestroy() > > onDestroy() is called when the activity is destroyed. Nothing is called > on the activity when the CPU shuts down. > > With that in mind... > > > On Sep 15, 6:36 am, Zhihong GUO <gzhh...@gmail.com> wrote: > >> how to get notification before the CPU get to deep sleep? > > There is no notification when the CPU shuts down. > > >> I want to do some > >> task before my application be killed by the system. > > When the CPU shuts down, your application is not killed. > > -- > Mark Murphy (a Commons Guy) > http://commonsware.com | http://twitter.com/commonsguy > > Android 1.5 Programming Books: http://commonsware.com/books.html > > > > --~--~---------~--~----~------------~-------~--~----~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---