Android doc says that registerMediaButtonEventReceiver "register a
component to be the sole receiver of MEDIA_BUTTON intents".

My app calls it inside the activity onCreate method. When default
music player starts and my app goes into background I see in LogCat
music player also calls registerMediaButtonEventReceiver which should
make it the sole recipient of ACTION_MEDIA_BUTTON event.

However, my app still continues receiving MEDIA_BUTTON events in my
receiver even though they should only go to music player. when my app
is playing audio in background it results in my audio pausing and
music player not doing anything. when music player is playing audio
and my app is in pause state this results in music player pauses and
my app immediately starts playing audio.

-- 
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

Reply via email to