How to detect whether screen is on or off if API level is 4?

For screen on-off state, you can try with ACTION_SCREEN_ON and ACTION_SCREEN_OFF Intents, as shown in this blog post: http://thinkandroid.wordpress.com/2010/01/24/handling-screen-off-and-screen-on-intents/

Leave a Comment