I want to be able to detect the phone lock event. When my app is running, if I press the red button (call end button/power button), the phone gets locked and the screen goes blank. I want to be able to detect this event, is it possible?
Thanks Chris
I want to be able to detect the phone lock event. When my app is running, if I press the red button (call end button/power button), the phone gets locked and the screen goes blank. I want to be able to detect this event, is it possible?
Thanks Chris
Have a Broadcast Reciever for "android.intent.action.SCREEN_ON" and "android.intent.action.SCREEN_OFF"
Related: Read CommonsWare Answer Here