Remove All Ads from XDA

Detect which audio output is selected?

1,441 posts
Thanks Meter: 193
By [email protected], Senior Member on 28th October 2019, 02:46 AM
Post Reply Email Thread
Is there a way detect which audio output is selected (i.e. speaker or bt headphones)? I'm trying make audio notification through speaker ONLY when bt headphones are connected and audio is routed to it.
I found a partial solution here it works well, until audio output is selected for speker, while bt headphones still connected: I get double notification
Any tips?

Thank you.

Using Samsung S10+ with Android 9
28th October 2019, 03:31 PM |#2  
ktmom's Avatar
Senior Member
Thanks Meter: 2,363
Unless an app broadcasts the information of what stream it's using, it's not something Tasker will be able to identify, certainly not before the notification has already fired.

The idea of the profile you linked is that notifications that would sound over BT only because the headset is connected, are given an additional notification over the speaker.

I'm guessing that you have an app selected in the notification listener plugin that (also) sends it's notification through a different stream that plays on the speaker, even though the BT is connected.

If that's the problem, just deselect that app from the notification listener context.

If it's more complex than that, please provide specifics and we'll see if that's a solution.
29th October 2019, 06:32 AM |#3  
It's somewhat system setting (SmartThings is built-in app?)
Click image for larger version

Name:	20191029_002755.jpg
Views:	32
Size:	104.8 KB
ID:	4859391
29th October 2019, 03:05 PM |#4  
ktmom's Avatar
Senior Member
Thanks Meter: 2,363
Originally Posted by [email protected]

It's somewhat system setting (SmartThings is built-in app?)

I'm not a Samsung person, but a little searching teaches me that SmartThings is Samsung's home automation offering. Maybe there is a suitable plugin or something out there that will help you. An older post in the Samsung community forums, but a Tasker plugin was being discussed.
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes