What steps will reproduce the problem?
1. Install Amazon Mp3
2. Fire a media event
3. Observe that amazon mp3 doesn't show up
What is the expected output? What do you see instead?
That you would see and be able to select amazon mp3 to forward media events to.
More info: Amazon Mp3 does indeed handle media button events (verified by
disabling media button router). It looks like it is registering it's broadcast
receiver solely through
AudoManager#registerMediaButtonEventReceiver(ComponentName) and that the
Broadcast Receiver is not declared in the android manifest. First, this goes
against the documentation on registerMediaButtonEventReceiver which states that
the receiver must be declared in the manifest. Second,
PackageManager#queryBroadcastReceivers() doesn't know about broadcast receivers
that are registered programmatically:
http://groups.google.com/group/android-developers/msg/5fd1cdb24b2a6760
Two options are to either get Amazon to add their reciever to their manifest,
or, to detect amazon mp3 as being installed, and create special code to have
it's receiver included in the list. Second route will be brittle since I'll
have to hardwire the name of the receiver.
Original issue reported on code.google.com by harleens...@gmail.com on 21 Apr 2011 at 6:19
Original issue reported on code.google.com by
harleens...@gmail.com
on 21 Apr 2011 at 6:19