On Thu, Nov 18, 2010 at 9:23 AM, chcat <[email protected]> wrote: > I have to handle "power down" event in my service, but so far I > couldn't find how to receive "power down" event...Do I need to > implement "broadcast receiver" functionality in my service? I would > appreciate some pointers.
You will need a BroadcastReceiver to watch for the ACTION_SHUTDOWN system broadcast: http://developer.android.com/reference/android/content/Intent.html#ACTION_SHUTDOWN -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- 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

