[android-developers] Power button
I am developing an app, I would like to use the power button as a
panic button. Is there a way to hook into and catch globally from a
service. I know that android fires the intent.action SCREEN_ON and
_OFF but this causes issues. I have a service that monitors for screen
on/off sets an alarm on first press to expire and reset a setting if
not hit 3 times in 1.5 seconds. There are times that this condition
can be met just by the normal power down of the screen. e.g. market is
downloading an app and screen goes to sleep, you wake up to check and
turn off the screen after checking
Any help greatly appreciated.
Jeff
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home