views:

26

answers:

1

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,

A: 

yes as in the screen turns on

Alex