I am creating an Android service which constantly runs in the
background. I'd like to be able to intercept calls to the power button
to: a) prevent the screen coming on and b) handle the power button
press in a different manner.

This is to enable the user to have a very simple interface to my
application and prevent wasting battery powering up the screen when it
is not required.

I will probably need an alternative mechanism to actually bring the
screen back up (such as an extended key press or similar), but this
only becomes relevant if what I'm after is possible.

Thanks for any advice!

Jamie

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to