pperrin / media-button-router

Automatically exported from code.google.com/p/media-button-router
Apache License 2.0
0 stars 0 forks source link

Amazon Mp3 doesn't show up in list of music apps to forward events to #1

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
The latest version Amazon MP3 (2.0.4) now shows up in media button router and 
works well. 

If you have any issues please comment on this ticket or open a new ticket.

Marking this as fixed even though I didn't make any changes.

Original comment by harleens...@gmail.com on 27 Apr 2011 at 3:16