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
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