Broadcast when the system is about to turn the CPU off
<p>Is there any possibility to be notified when the system is about to go to sleep to preserve the battery on Android?</p>

<p>There is for example:</p>

<p><a href="http://developer.android.com/reference/android/content/Intent.html#ACTION_SCREEN_OFF" rel="nofollow">Intent.ACTION_SCREEN_OFF</a></p>

<p>However, is there any way to set a callback when when the system is about to put the CPU to sleep?</p>
