Results 1 to 7 of 7
  1. #1
    Super User
    Join Date
    Apr 2011
    Posts
    303
    Thanks
    7 Times
    Thanked
    15 Times

    [HOWTO] Get Your BT Device to Control Your $*#(@ Non-"Music" Music Apps

    Getting Bluetooth (BT) devices working properly with non-“Music” music apps can be tricky, especially if you use several on a regular basis. A common problem is a user might be listening to music, say, on Pandora and would like to skip the current song. The user pressed the “next track” button on their car stereo, for example, and an MP3 begins playing from the Music app. What is exposed here is an undesirable (in my brutally honest opinion) handling of app focus and interaction in Android. This manifests itself in a couple of ways:


    1. Android always directs BT user interaction to the default music app regardless to whether another music app is in use, let alone if the app is in focus or not.
    2. Android does not allow the user to change this behavior
    a. The Music app does not offer an option to ignore this behavior like other music apps, but I don’t believe this is a problem with the Music app since these options are works-around the above issues.


    In order to “trick” Android into behaving “properly” for BT interaction, users can pursue several options:

    1. User only uses one music app
    a. User accesses main Android settings > programs > default programs and selects the music app they use
    2. User uses multiple music apps but does not listen to music stored on the phone*
    a. Using Titanium Backup, uninstall the Music app, or alternatively, use Root Explorer to rename Music.apk to, say, Music.apk.bak (thanks, Khaid).
    b. User accesses main Android settings > programs > default programs and verifies there is no default music app selected.
    3. User uses multiple music apps and listens to music stored on the phone**
    a. Using Titanium Backup, uninstall the Music app, or alternatively, use Root Explorer to rename Music.apk to, say, Music.apk.bak.
    b. User installs an alternative music app and sets the default application in the global Android settings to the new application.
    c. In the settings for the new music app, user turns off any “auto-start” options for “headset” or BT control. If the new music application does not have these options, this work-around will not work.
    i. I prefer PlayerPro as it has extensive “Headset” (BT) control options including the “Auto Start” option.

    Ideally, it would be preferable if Android behaved like other OSs where all user interaction were directed toward the app in focus; it’s unclear, to me anyway, why Google chose this route. Another puzzling choice is why Google uses a radio button list to choose the app vs. something like a mutually-exclusive checkbox. This forces the user to select an app (should there be one chosen) and does not allow the user to completely “opt-out” of a default app. Perhaps this might be addressed in future versions.

    * I have not fully explored this method. It seems to work correctly, but YMMV.
    ** This method always works in my testing and can be used in lieu of work-around 2 should it not behave as anticipated.

    UPDATE: The 1.5.27 changelog suggests that there might be functionality added to "fix" the default app behavior for "Music." I'll check it out when it's released and update this post accordingly.
    UPDATE: As of 1.6.3, the problem still exists.
    Last edited by itlnstln; 06-06-2011 at 12:28 PM. Reason: Update

  2. The Following User Says Thank You to itlnstln For This Useful Post:

    JasonK75 (05-18-2011)

  3. #2
    Member
    Join Date
    Apr 2011
    Posts
    57
    Thanks
    0 Times
    Thanked
    3 Times
    Instead of uninstalling miui music app, I just rename the file to miuimusic.apk.bak

  4. #3
    Super User
    Join Date
    Apr 2011
    Posts
    303
    Thanks
    7 Times
    Thanked
    15 Times
    Quote Originally Posted by khaid View Post
    Instead of uninstalling miui music app, I just rename the file to miuimusic.apk.bak
    That'll work too. The unfortunate thing for some people is that in either case they won't be able to use the Music app.

  5. #4
    Super User
    JasonK75's Avatar

    Join Date
    Apr 2011
    Location
    Michigan
    Posts
    620
    Donate
    Thanks
    35 Times
    Thanked
    48 Times
    Great write up! That sounds like you did some major research and testing to find out how to make this work for you!

  6. #5
    EVO 3D & EVO Forum Moderator
    justs's Avatar

    Join Date
    Apr 2011
    Posts
    423
    Donate
    Thanks
    14 Times
    Thanked
    121 Times
    Very nice post! I am moving it to Development. Trying to keep all the threads that help us love our EVOs in that sub-forum and all the questions and rhetoric in the HTC EVO main forum.
    ...nothing is perfect...nothing is complete...nothing lasts forever...

    |Rig [SGSII|E4GT] |Rom [TNz BLEND 2.6.0 EL29] |Kernel [Rogue *Stock EL29*]|Recovery [Rogue ET 1.1.4]|Base [EL29]

    ••• MIUI.us EVO Development ••• Use DROPBOX, MINUS & SUGARSYNC for all your Android mods! ••• MIUI.us Weekly Changelog •••

  7. #6
    Super User
    Join Date
    Apr 2011
    Posts
    303
    Thanks
    7 Times
    Thanked
    15 Times
    Quote Originally Posted by JasonK75 View Post
    Great write up! That sounds like you did some major research and testing to find out how to make this work for you!
    Thanks. Driving around and having random music begin playing started driving me nuts (no pun intended).

  8. #7
    Super User
    Join Date
    Apr 2011
    Posts
    303
    Thanks
    7 Times
    Thanked
    15 Times
    Quote Originally Posted by justs View Post
    Very nice post! I am moving it to Development. Trying to keep all the threads that help us love our EVOs in that sub-forum and all the questions and rhetoric in the HTC EVO main forum.
    Will do. When I get to work, I'll clean it up for clarity. I was I was trying to rush through it to help the user on XDA right before leaving work yesterday.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -4. The time now is 11:45 AM.
Powered by vBulletin®
Copyright © 2013 vBulletin Solutions, Inc. All rights reserved. © 2013 MIUI.us.
Download Bandwidth Sponsored by: VPN Tunnel
Need hosting? GlowHost.com