I don't know if you can change the priority, but you could just have your receiver do nothing when you don't want to handle the button.
On Tue, May 5, 2009 at 8:22 AM, Filipe Abrantes <[email protected]>wrote: > > Hi all, > > I have developed a music player and the application defines a bradcast > receiver that handles MediaButton intents: > > ... > <application...> > > <receiver android:name="MediaButtonIntentReceiver"> > <intent-filter > android:priority="32000"> > <action > android:name="android.intent.action.MEDIA_BUTTON"/> > </intent-filter> > </receiver> > > </application> > > > which works well. > > My question is if it was possible to change the priority of this > receiver from within the settings activity of my application. That way > people could choose if they wanted my player as default handler of the > headset buttons or not. > > Cheers, > Filipe > > http://abrantix.org/rockon.php > > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

