How to register to sleep event in Android?
<p>I am working on Android 3.0 and I need to know in my application when the device goes on sleep / turn off screen.</p>

<p>How can I register to this intent/event so I will be able to run some actions when this happens? Is there any action in BroadcastReceiver that notifies for this?</p>
