[Q] How can I switch from one audio output device to another? - Android Q&A, Help & Troubleshooting

Is there an app, widget, whatever that will allow me to easily switch the audio output from one device to another? e.g., I am connected to both headphones and a bluetooth A2DP device and audio is playing through the the A2DP. I want to be able to switch to headphones or even the built-in speaker without turning off the A2DP device or connecting/disconnecting the headphones.
I have a couple of devices that I would like to do this on:
Samsung Galaxy S3 (Sprint) w/ AOKP 4.2.1 (root access enabled)
Archos G9 w/ ICS 4.0.4 (root access enabled)​
I have searched the Play Store, XDA, and the open interwebs for a solution, but search terms like "android audio output device switcher" are frustratingly broad and difficult to narrow. I previously came from an iOS background, where the audio switcher was built into the OS audio system, and the headphones, iPhone output, bluetooth, and any AirPlay devices could all be selected with relative ease. Ideally, I'd like something that works as easily, perhaps as a lockscreen or notifications widget. A solution that requires root would be fine.
Many thanks!

I was hoping to see any response or direction .. I'm also looking for a solution for this

Really late to reply, but SoundAbout should do that trick.

2018 and still nothing aside from SoundAbout, which crashes on me. ??

u can use lesser audioswitch from playstore.it works flawless.

Related

How to turn off the HTC Audio Manager

HTC's Audio Manager is crap. To add insult to injury it takes over AVRCP controls such that no other application can use them. On an HTC Hero try the following - download and install some other audio player. For example, Google Listen for podcasts or TuneWiki or BeyondPOD. Next connect a AVRCP capible Bluetooth headset like a Sony Ericson HBH-DS980. Press play on the head set and insure that play plays music in the HTC Audio Manager (IOW that Music thingy on the HTC Hero). Insure that Play/Pause on the headset plays or pauses the audio program.
Now start Google Listen (or TuneWiki, or whatever) and play some audio material. Now press Play/Pause on the headset again. You'll see that you'll have two programs playing instead of one. IOW the AVRCP Play/Pause button controls only the HTC Audio Manager.
Therefore I'd like to turn off/uninstall/disable/kill the AVRCP stealing HTC Audio Manager program.
HTC did this same stupid thing on my HTC Touch running WinMo. However a company called Conduit who makes PocketPlayer figured out how to wrestle away AVRCP control from the HTC Audio Manager (and I was able to use a program to disable the Music tab where the HTC Audio Manager lived). So surely there's a programmatic way to accomplish this at least on WinMo - surely there should be a way to disable this on Android! Anybody know of any solutions? This is driving me nuts!
Anybody?!?
Note I figured out that I can root my phone then remove /system/app/HtcMusic.apx and HtcMusic.odex and the HTC Music thing is disabled. The widget is still on the home screen but it fails to start the player stating it's not there. Unfortunately all control of AVRCP is gone too!
Seems to me I just need to install the standard driver for AVRCP. Anybody know anything about that?
defaria said:
Anybody?!?
Note I figured out that I can root my phone then remove /system/app/HtcMusic.apx and HtcMusic.odex and the HTC Music thing is disabled. The widget is still on the home screen but it fails to start the player stating it's not there. Unfortunately all control of AVRCP is gone too!
Seems to me I just need to install the standard driver for AVRCP. Anybody know anything about that?
Click to expand...
Click to collapse
This may not be the best solution, and there's probably someone who can answer the question better than I can... but you could always try a non-HTC ROM for the Hero, aka a Vanilla Android ROM.
Yes, I would like a 1.6 or 2.x version of Android. Do you know where I can get one for a Sprout CDMA based Hero? Also I'd like to have the original Sprint ROM so I can flash back if required. Although I like the HTC Sense stuff i'd give that up of I cam fix this HTC Audio Manager crap. Still an HTC Hero ROM with Sense but minus the HTC Audio Manager bug would be very useful to many.
I had the same problem. So I debugged a little bit and found out the following:
The problem:
Normally an Android device should broadcast a "MEDIA_BUTTON" action when the AVRCP buttons on the bluetooth headset get pressed so that applications like music player can react on these events. It seems that HTC decided to ignore this and uses some other (non-standard) way of doing this on the HTC Hero (maybe on other phones too, I don't know).
My workaround:
I found out that at least l can see the button press events in the device logs. So I implemented a workaround application for myself, which simply monitors these logs. When it finds one of these AVRCP messages it broadcasts the "MEDIA_BUTTON" event which normally the platform should send. I know, this is an ugly way of doing this (because it needs a running service, monitoring the logs) but currently I see no other way.
This enables other applications to react on the headset buttons!
You still need to disable or remove the HTC music app or both applications will react on the buttons! I simply deleted it from my Hero (see instruction below).
As I saw here today that others might be interested in this workaround too, I published my app in the market a few moments ago. It's named "Headset Button Fix".
I cannot guarantee that it works for you, because I had only my headset (Nokia BH 503) for testing and I am not sure if the log messages are the same for other headsets. Just give it a try.
And finally, here the instructions how I removed the HTC music player from my (rooted) HTC Hero:
# Make the phone's filesystem read/writable:
> adb remount
# copy the HTC Music app in the current directory
# (for backup, if you want to reinstall it later)
> adb pull /system/app/HtcMusic.apk ./
# Delete the HTC music app on the phone
> adb shell rm /system/app/HtcMusic.apk
# Restart your phone afterwards.
Hope I could help someone with this..
johnny
Short update:
I found a much more elegant way to receive the headset button press events. Now my application directly receives the AVRCP broadcast intents from Android and re-broadcasts it correctly as MEDIA_BUTTON events for other music players.
So this solution is not ugly anymore (of course, working AVRCP on stock Hero would be the best, but now I can live with it).
I published this new version 2.0 in the market. Search for "Headset Button Fix"
As it does not need logcatting anymore, it needs far less resources!!
(You still have to get rid of the HTC music player. I'm afraid there is no way to prevent it from also start playing, except uninstalling it.)
So long..
Enjoy it.
Will try this later
i have a Sony audiocar with bluetooth AD2P and was wandering the same thing
ok
don't work with my audio car (sony mex-bt2500 )
Hmm.. sorry to hear this. So it seems not to work with every headset..
Hi again!
I quickly wrote a simple debug application which registers a receiver for the same events and simply prints them out. When you look at the screenshot you see how it looks like when I press buttons on my headset.
You could try this with your car system. If don't see anything in the output, then my workaround will not work for you. If you just see different command strings (in the EXTRA_FIELD_OP) then I could adapt my application.
Let me know what you get..
john
P.S.: You have to rename the attachement "DebugAVRCP.zip" to "DebugAVRCP.apk" as the forum seems not to allow .apk attachements.
My bad
its working
but i had to change my player : MortPlayer for Meridian (which have an option to activate Headset Buttons
it works great
but, is it possible to add an option to your app to automaticaliy run it and enable it when we activate bluetooth??
Thanks.
I have a lot of work at the moment, but I also was thinking about this. I will continue working on this next weekend.
regards,
john
As the OP of this thread I was anxious to try this out - but I had been in the process of moving so I'm only now getting back to this. Alas it didn't work for me. Yes I can remove the HtcMusic.apk and I have installed the Headset Button Fix. But pushing play on my headset does not stop or start the player I probably will be using most - Google Listen. You see I listen to podcasts most often and Google Listen's pretty good. It's also free and in the market place so could you download it and try it?
Also, what "player" are you using that works?
As for headset I use the Sony Ericson HBH-DS980. I love 'em! They work very well and are quite convenient. I fail to see how they would be different than any other Bluetooth device. I mean isn't an AVRCP pause control the same for all Bluetooth devices?!?
Other questions:
. Removing HtcMusic.apk removes the HTC Audio Manager music thingy, but you should probably remove that HTC Music widget (com.htc.MusicWidget.apk) too.
. As an installer, couldn't you rename HtcMusic.apk -> HtcMusic.apk.save and com.htc.Music.Widget.apk -> com.htc.Music.Widget.apk.save on install and rename them back on uninstall?
. It would be nice if this could be set up to auto start - and perhaps get rid of the little icon for those of us who would like it to always be running in the background
I would like to work with you - perhaps offline - to get this working for me and all other HTC Hero owners who might have a Bluetooth headset and want to use Google Listen, etc. You can contact me at [email protected].
This just in - I installed MortPlayer to pick a music player to test with. It works! AVRCP works with MortPlayer - just doesn't work with Google Listen! Wonderful! Who do I complain to now? Is it possible for us to debug this?
hi!
was having all the same problems (but with mixzing, I do not know Listen). This nice app makes me happy again about having bought a bluetooth headset!
@uninstall/rename:
AFAIK it's not possible for an application to rename/uninstall other applications on install. Additionally the HTC player is not installed in the "normal" app area, but under /system/ (that's the reason why you cannot uninstall it the standard way).
So I assume there will be no easier option than doing this as root via adb.
and @icon:
on my hero I can deactivate it in the preferences
and yes: autostart on headset connect would be nice!
Ok, tried today with Google Listen:
Seems to work partly (while having Headset Button Fix running). It does not react on the Play/pause button, but "Stop", "Next Track", "Previous Track" seem to work for me (while listening).
As far as I understand this is an issue of Listen but I am not sure about this. What they definitly did not implement is to react on AVRCP when the app is not started yet (some music player do start up then). To do this the app would have to register a BroadcastReceiver via its Manifest.xml file which it doesn't.
Maybe somebody could test the Play/Pause behaviour on a different phone (not a Hero), where AVRCP works normally. If then the behaviour is the same, then probably the Listen app is to blame.
hope that helps..
Pause/Play is all I really want. My Bluetooth headset doesn't have a Stop button and Stop would be the wrong thing to do as it would loss my place in the track. I cannot for the life of me understand why this is so difficult nor why one would implement Stop/Next/Prev but not Play/Pause!!! Makes no sense.
Then again I still haven't figured out why Google Listen seems to be behind WRT podcast feeds. For example, I use Banshee on my Linux box. I've subscribed to, for example, Security Now. Banshee shows and has downloaded the latest episode. But Google Listen? Just has a refresh menu selection. Select that and it thinks for a while but no new Security Now episode. Why does Banshee know about it but not Google Listen? Aren't they both going to the same source RSS feed? Shouldn't they both recognize there's a new episode?!?
Who do I contact exactly to submit bugs/etc. for Google Listen?....
Ah here's the link: http://listen.googlelabs.com
Note they say:
Can I use my Bluetooth headset?
Definitely. In fact, we love using Listen with wireless headsets. Using a headset with A2DP capability, you can get you audio content right in your ear, and often use the headset controls as well.
Click to expand...
Click to collapse
Note the use of the term often! Ugh!
Guess it's off to their forums...
Anybody know of a good podcatcher for Android that works with AVRCP?
(a) solution for audio manager problem..
A solution (I know, not the beauty price) to solve the problem of parallel controlling audio manager and music player (in my case museek), w/o rooting my fone, and deleting audio manager:
I've recorded a nice 3 minute piece of SILENCE with recorder, named it SILENCE, and started audio manager with playlist 'my records' (only containing before mentioned silence recording). Following, start Headset Button Fix (great program!), and Museek; result: although headset still commands audio manager aswell, it only skips/ replays/ forwards the silence recording, and my music on Museek is OK, replay-able, forward-able.. I knows it's a noobie's solution; but it works! (for folks, who like me, don't want to root their Hero)
johnny_z said:
I had the same problem. So I debugged a little bit and found out the following:
The problem:
Normally an Android device should broadcast a "MEDIA_BUTTON" action when the AVRCP buttons on the bluetooth headset get pressed so that applications like music player can react on these events. It seems that HTC decided to ignore this and uses some other (non-standard) way of doing this on the HTC Hero (maybe on other phones too, I don't know).
My workaround:
I found out that at least l can see the button press events in the device logs. So I implemented a workaround application for myself, which simply monitors these logs. When it finds one of these AVRCP messages it broadcasts the "MEDIA_BUTTON" event which normally the platform should send. I know, this is an ugly way of doing this (because it needs a running service, monitoring the logs) but currently I see no other way.
This enables other applications to react on the headset buttons!
You still need to disable or remove the HTC music app or both applications will react on the buttons! I simply deleted it from my Hero (see instruction below).
As I saw here today that others might be interested in this workaround too, I published my app in the market a few moments ago. It's named "Headset Button Fix".
I cannot guarantee that it works for you, because I had only my headset (Nokia BH 503) for testing and I am not sure if the log messages are the same for other headsets. Just give it a try.
And finally, here the instructions how I removed the HTC music player from my (rooted) HTC Hero:
# Make the phone's filesystem read/writable:
> adb remount
# copy the HTC Music app in the current directory
# (for backup, if you want to reinstall it later)
> adb pull /system/app/HtcMusic.apk ./
# Delete the HTC music app on the phone
> adb shell rm /system/app/HtcMusic.apk
# Restart your phone afterwards.
Hope I could help someone with this..
johnny
Click to expand...
Click to collapse
I guess at some point I need to learn this ****! I have been trying for the last 2 days to do this and don't know how to go about it!
I am rooted, got fresh, and gumbo going, so could some one help me out with this!

SoundHound/Shazam - inbuilt audio detection

Hi there,
I was wondering if there is anyway to make SoundHound or Shazam to detect musics that played from Internet radio, ie "tunein" or alikes, that usually plays only if you plug your headphones in?
It seems SoundHound and Shazam can only detect incoming sound using the phones mic, so if nothing is going to mic it will not detect anything at all.
I saw in a post from a Sony Xperia user that he accidently made it working but i think its only for that particular phone.
It would be nice to know if anyone has any workarounds/mods to make this work on any android device?
I think its phone dependent. For example, I have the HTC One, which let's me use SoundHound with audio I'm listening to with earphones. It may require special drivers, like how some PCs let you use what you hear on the computer as a recording device (Stereo Mix). That's the best way I can explain it, you need a device or kernel or ROM that has this "stereo mix" style feature

[i9305 LTE] Dock 'Dialler Audio' Kernel Modifications?

Hi guys, first post here on the forums. I have a question/request for something that bugs the hell out of me.
I own one of the iBolt car docks for my s3 4g; it's great and works well (provided I uses a custom kernel like Perseus), my issue is that although the custom kernels can properly detect the dock and route media audio through the aux out, none of them seem to be able to route my call audio through the aux-out and still have the microphone working.
I'm currently using Ripper Rom V9 with the perseus kernel, when I go to place a call it automatically puts the phone on 'speakerphone' and still detects my voice through the inbuilt microphone but I would much prefer for it to come through the aux-out, is this possible with modification of the kernel? This would be very useful for many people I would imagine, it is very hard to hear the other persons voice through speakerphone while my phone is docked up on the dash and I'm driving along. I read somewhere that samsung by default don't allow such configuration, I think it may have been on an audio-redirector app but it only redirected system and media audio.
Any information would be greatly appreciated :good:
Kane.

No audio from browser, audio player but phone works. possibly skype related.

Hey together. I'm a noob *duck* - but I did quite some search on google and on these forums before posting, and I'm not a very stupid noob.
Today I got the situation that no audio is audible any longer from my browser, games, audio apps, or from an audio player (all of them previously worked). This is the case for headphone and also the built in speaker. The problem occurred very likely after using skype. I also still have audio in phone calls and also I still have sound for ringtones and other alarms. Handset functioms all still work fine.
The first obvious thing I did was checking volume settings in the android settings. There I moved all sliders - the one responsible for regular audio did not give me any feedback. If I use the volume buttons on the phone while I'm on my home screen I get audible feedback - but that doesn't influence my problem.
Funnily the sound in skype still works. More funnily: during skype calls the audio from my browser or the audio player is also audible (I tried this just out of couriousity as I suspected Skype to be the cause of my problem. Et voila - I got sound from a TV News page and also from the Walkman app while the call on skype was still running. As soon as the call in Skype ended the audio from browser and adio player got muted again.
I also tried to kill skype during a call in order to kill it before it can again mute the audio - No luck. as soon as the skype app is killed also the audio from audio player and Browser vanishes.
I also tried some audio apps - all have the same issue of having no sound.
I then tried different apps which control volumes - without any luck. So at the moment I don't have audio, except during skype calls.
I guess that skype has either access to some hardware settings which aren't used usually (I hated skype for things like this as long as it had existed) - or I'm missing something very obvious. Or something else. Does anybody of the developers here know about linux settings I could modify? (is there something like alsamixer which is only possible to access via jni or similar?)
// Edit:
Just found out that toggling airplane mode ON I have sound for media (audio player, browser). (but also lose the ability to use my cellphone and network). As soon as I switch back to airplainmode OFF also audio is muted again. And for sure - I also tried rebooting in different states of my phone quite often without any difference.
// Edit 2:
looks like I found a workaround but no permanent solution - I installed an app SoundAbout (free app) recommended for similar problems in an other thread: 89996-galaxy-s3-media-volume-stuck-mute.html (I have now put output permanently to "headphones" for media sounds. However as soon as this setting is reset to the default (let app decide) it is muted again when airplane mod is set to off - looks like an other app resets it? (could not find any app obviously doing this though as I stopped the usual suspects)
I still suspect Skype as the original reason for this problem as I just recently had it updated when the problem appeard and it also messes with this kind of stuff during usage (and I don't really use other apps dealing with audio except of browser, music player which weren't updated for a long time).
Maybe also of concern:
It's an sony xperia p, running Android 4.0.3 and it is currently rooted.

Parrot Asteroid Smart Bluetooth and Sound Issues

Hey guys, I just replaced a Sony deck with the Smart and I LOVE it so far. It's taking some tweaking to get it how I want it, and to get it to do what I want it to do and why I chose it over Appradio. I have it rooted, and I've got the Play Store working great. The lack of a volume knob is a drag, but I'm hoping to fix that with PullOpenSettings. I have 3 unsolved issues so far:
**1. The Sony deck it replaced had separate HPF/LPF so that it could ensure that only bass went to the subs, and I was also able to remove most of the bass that went to my regular speakers since they don't really handle bass at the volumes I listen to. I see that I can set the crossover frequency for the subs and that's great, but is there an app that will allow me to adjust the bass to the speakers without affecting the sub? I've searched high and low and I've yet to find one.
**2. I cannot get my Bluetooth ELM OBD adapter to pair. I read in an Amazon review that "All I had to do was install the Bluetooth apk and it worked perfectly" I'm not sure what 'Bluetooth apk' he's referring to, but I'd sure like to know!
**3. Lastly, why can't I get this to Bluetooth tether to my Nexus 4 running CM 10.1? Yes, I have Bluetooth tethering enabled in the phone and in the head unit, and dual-mode is off. If you look at each other's profiles on the other, there's Phone Audio and Media Audio, but no profile for PAN. I'd read somewhere that installing Open Garden Wifi Tether would fix this. I didn't see how it could, but I sideloaded it to my phone and of course it didn't work. I just can't figure out how to give the deck PAN.
***Any Help with any of these would be appreciated!! Thank you!

Categories

Resources