I want to do something when the mobile device is closing, but I don’t know what is the method; could you tell me how to detect if mobile device is shutting down?
I know the method about mobile restart android.intent.action.BOOT_COMPLETED, but I cannot find similar power off.
I want to do something when the mobile device is closing, but I don’t
Share
http://developer.android.com/reference/android/content/Intent.html#ACTION_SHUTDOWN
This would appear to be it? I just Googled your command and it was on the Standard Broadcast Actions list. 🙂