how to know device is power off
<p>i want to do something when the mobile is closing,but i donot know what is the method,could you tell me How to detect mobile will shut down. i know the method about mobile restart android.intent.action.BOOT_COMPLETED ,but i cannot find  power off.</p>
