Don't confuse him with false information. Android natively supports all those actions under android.intent.action.MEDIA_BUTTON, which is what he used Your example is false as well since multiple apps can catch this event, they just need to be kind to one another. see this: http://android-developers.blogspot.in/2010/06/allowing-applications-to-play-nicer.html
Regarding the original question: try that link without unregistering on onPause, maybe it would work, my guess is that you'd have to keep a partial wake lock . On Monday, April 22, 2013 4:33:25 PM UTC+3, lbendlin wrote: > > Do you mean the on hook/off hook button? Remember when phones were used > for actual voice calls? Play/Pause and Skip etc are all just botched on > functions that may not be supported on all devices. > > Let's say Pandora is playing on the device with the screen off. You press > the button. What are you expecting to happen? > > On Sunday, April 21, 2013 5:42:38 PM UTC-4, Fred Niggle wrote: >> >> >> 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 [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 --- 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 [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

