Code Monkey home page Code Monkey logo

media-button-router's People

Contributors

harleensahni avatar

media-button-router's Issues

Offer "Default" option

What steps will reproduce the problem?
1.Hit media button.
2.Don't select an app.
3.Times out, no music plays. 

What is the expected output? What do you see instead?
This is fine, but we should offer an option to default to last app in 
preferences. Then when timeout occurs, whatever the last music app the user 
selected will get the action. This way they don't have to do two button presses 
to play. 

A user suggested a "default" behavior in the comments. Not sure if this is what 
they meant.

Original issue reported on code.google.com by [email protected] on 20 May 2011 at 11:01

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

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 [email protected] on 21 Apr 2011 at 6:19

Disable media buttons for short period right after bt connection established

Purpose:
To provide cleaner experience to users who are using app to primarily stop car 
bluetooth auto-connect from blasting them with music

Good number of comments on market about how people are using media button 
router to stop their cars from playing music automatically. Some feature 
requests are even just for media buttons to do *nothing*. Apparently some 
bluetooth devices will send a play media button event after they bt sync (which 
can happen automatically). This causes music to play right away when you get in 
the car and is annoying. There's also a lot of comments on bluetooth issue on 
android about same thing. 

Enhancement:
Have a "saftey" that is activated for x seconds after a bluetooth connection 
occurs. If the device receives a media button event soon after bluetooth 
connection is established just flat out ignore it and do nothing.

Original issue reported on code.google.com by [email protected] on 3 Jul 2011 at 3:45

Display Visual Indication of selection.

What steps will reproduce the problem?
1. Launch Media Button Router 
2. Navigate the List using BT headset controls
3. Observe that there's no visual indication of the selection except the list 
scrolling to keep the selection in view. The only real indication is through 
the text-to-speech.

What is the expected output? What do you see instead?
Would be nice to display selection to the user using the selector that shows up 
on keyboard nav of lists. This is PITA to do. The only way I could do it before 
was simulating keyUp and keyDowns to navigate the list, but that doesn't  let 
us do wrapping behavior cleanly. 

Please use labels and text to provide additional information.


Original issue reported on code.google.com by [email protected] on 19 May 2011 at 1:37

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

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 [email protected] on 21 Apr 2011 at 6:19

Text to speech check

What steps will reproduce the problem?
1. User doesn't have TTS installed
2. User uses app, doesn't hear any speech
3. User uninstalls app

What is the expected output? What do you see instead?
Prompt user to install TTS 

Please use labels and text to provide additional information.


Original issue reported on code.google.com by [email protected] on 14 May 2011 at 4:10

Can't figure out main activity for registered media button receiver user selected

Have one of these reports. It looks like I can't figure out the main activity 
for the media button receiver. I should show some toast and fail cleanly, or 
just filter out apps that i can't find the main activity for. Need to look at 
code again.  No idea what app the user was going for so I can repo.
java.lang.NullPointerException
at android.app.Instrumentation.execStartActivity(Instrumentation.java:1374)
at android.app.Activity.startActivityForResult(Activity.java:2873)
at android.app.Activity.startActivity(Activity.java:2983)
at com.harleensahni.android.mbr.Utils.forwardKeyCodeToComponent(Utils.java:107)
at 
com.harleensahni.android.mbr.ReceiverSelector.forwardToMediaReceiver(ReceiverSel
ector.java:586)
at 
com.harleensahni.android.mbr.ReceiverSelector.select(ReceiverSelector.java:644)
at 
com.harleensahni.android.mbr.ReceiverSelector.onTimeout(ReceiverSelector.java:67
1)
at 
com.harleensahni.android.mbr.ReceiverSelector.access$4(ReceiverSelector.java:652
)
at 
com.harleensahni.android.mbr.ReceiverSelector$4$1.run(ReceiverSelector.java:550)
at android.os.Handler.handleCallback(Handler.java:587)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:123)
at android.app.ActivityThread.main(ActivityThread.java:3806)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
at dalvik.system.NativeStart.main(Native Method)

Original issue reported on code.google.com by [email protected] on 3 Jul 2011 at 4:01

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.