The media button is a broadcast Intent, not an activity Intent. Hence, it doesn't go through the normal chooser-style stuff like you see with activity Intents (e.g., default browser).
You can listen for the ACTION_MEDIA_BUTTON broadcast. The documentation does not say it is an ordered broadcast, so I assume all applications that have registered for it will receive it. On Thu, Nov 11, 2010 at 10:06 AM, michael <[email protected]> wrote: > Hi, > > I wonder whether there is a concept in Android that allows a user to > define which application should be launched if a headset media button > is pressed..? > > This would be something similar as the concept of a "default browser" > or "default e-mail application" that is launched when a website should > be opened or a mail needs to be sent. As far as I know such a concept > at least exists for a browser on Android. > > Is there something like a "default media player" that is started when > the user hits the headset's play button? If so, how could my > application inform the system that it is a potential candidate for the > "default media player" application? > > Thanks, > > Michael > > -- > 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 > -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android App Developer Books: http://commonsware.com/books -- 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

