You can also use the PackageManager API to disable or enable the component.
On Tue, May 5, 2009 at 9:38 AM, Marco Nelissen <marc...@android.com> wrote: > 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 <filipe.abran...@gmail.com > > 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 >> >> >> >> > > > > -- Dianne Hackborn Android framework engineer hack...@android.com Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---