0

I have an activity that I want to show up when the phone goes to sleep. However, the phone wakes up when I press the volume buttons or the camera button.

I tried using the dispatchKeyEvent(KeyEvent event) method, but it doesn't prevent the phone from waking up.

How else can I disable that functionality?

Thanks,

2
  • Please define "wakes up". Do you mean that the screen turns on? Jun 4, 2010 at 12:05
  • yes as in the screen turns on
    – Alex
    Jan 25, 2011 at 16:41

1 Answer 1

0

I heard that waking behaviour is defined on framework level - in policy.jar or somewhere else. So your issue will require modifying system itself. Check also http://forum.samdroid.net/f42/disable-every-button-wake-up-2124/

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.