Hi Paul, I'm having no luck trapping the 'MEDIA_BUTTON' at all. I can capture the ACTION_CAMERA_BUTTON for the most part, but ACTION_MEDIA_BUTTON isn't working at all from the Service class I'm writing. I'd appreciate knowing if you solved your issues at all.
I am currently calling the registerReciever method with a BroadcastReciever instance and an intentfilter with the action Intent.ACTION_MEDIA_BUTTON. I am pressing the headset button, and it never seems to be caught in my receiver. Thanks for any insights. -Neal On Nov 18, 12:29 am, Paul Townsend <deer...@googlemail.com> wrote: > Bump. > > > > On Tuesday, November 17, 2009, Paul Townsend <deer...@googlemail.com> wrote: > > Hi I got a a MEDIA_BUTTON receiver but when I press it, it appears to > > broadcast twice when I press the button once. Now because the emulator > > doesn't have the headset button and I have to use USB debugging to use > > it on my phone I cant use the debugger and it is making it a pain to > > find out what's happening. Dose anybody know what occurs when this > > receiver is broadcasted. Also another problem I got is that I am > > running a service and I have a button to stop it, so I unbind it from > > the local activity then try stopping it but it appears to still be > > running ? > > > -- > > 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+unsubscr...@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 post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en