I am trying to write a small app that will catch the KeyEvent
of the back button been pressed, when the screen is locked.
I saw that you can easily override onKeyDown
or onBackPressed
in order to catch this event, but this will work only if the activity is running.
As I understand on some of the android phones, if not on all of them, the OS doesn't listen to the back and menu buttons while the screen is locked.
EDIT
I have read couple of posts about capturing the event of the user pressing the volume buttons, and all says their isn't a way to do so when the screen is off.
Is their a reason to belive the case is change regarding the back button?