This is sent when the system is cleanly shutting down: http://developer.android.com/reference/android/content/Intent.html#ACTION_SHUTDOWN
<http://developer.android.com/reference/android/content/Intent.html#ACTION_SHUTDOWN>But you should never rely on receiving this intent -- it is not at all unusual for the device to go off without any chance of this being sent (such as the user pulling their battery, which is not uncommon). On Sat, Jan 30, 2010 at 6:35 AM, Mark Murphy <[email protected]>wrote: > poohtbear wrote: > > Is there an API, or a registry i can do i nthe manifest to make sure > > my service is being run at the device start up and being shut down > > before the device shuts off ? > > Yes on the former -- listen for the BOOT_COMPLETED broadcast Intent. > > No on the latter, as far as I know. > > -- > Mark Murphy (a Commons Guy) > http://commonsware.com | http://twitter.com/commonsguy > > Android 2.0 Programming Books: http://commonsware.com/books > > -- > 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]<android-developers%[email protected]> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- Dianne Hackborn Android framework engineer [email protected] Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. -- 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

