I have been developing some Android application and I need to catch some events: when the device is rebooting and when device is shutting down. I know which BroadcastReceiver I should use for the first task but I don’t know anything the second one. Please, tell me about it. Thank you.
Share
You can
ACTION_SHUTDOWNIntent which is broadcast when the phone is going shutdown. Register ACTION_SHUTDOWN intent-filter action in Manifest as:and in your java code: