[android-developers] How to wake the device with wired headset play/pause button press
Before i begin : I have spent a lot of time trying to get my 2.1 device to wake from sleep when i press the play/pause button on the wired headset (the standard one that comes shipped with most phones)
I have an intent filter that collects the event IF the activity is displayed on the 'awakened' device, but no when the device is in sleep.
if i use wakelock to keep the screen on , then naturally, the battery is hammered, so the question is this:L
How can i register a wakelock for the headset action?
Thanks for any input folks,
Fred
--
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
---
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home