Yes the current setting is persisted. On Tue, May 5, 2009 at 10:45 AM, Filipe Abrantes <[email protected]>wrote:
> > Thanks I will try having a preference for the user to disable my player > to be the default handler of the intent using the PackageManager. > > One question more: do the PackageManager changes persist through a reboot? > > Cheers, > Filipe > http://abrantix.org/rockon.php > > > Dianne Hackborn wrote: > > You can also use the PackageManager API to disable or enable the > > component. > > > > On Tue, May 5, 2009 at 9:38 AM, Marco Nelissen <[email protected] > > <mailto:[email protected]>> 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 > > <[email protected] <mailto:[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 > > > > > > > > > > > > > > > > > > > > -- > > Dianne Hackborn > > Android framework engineer > > [email protected] <mailto:[email protected]> > > > > 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. > > > > > > > > > > > > -- Dianne Hackborn Android framework engineer [email protected] 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 [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 -~----------~----~----~----~------~----~------~--~---

