What is the correct way to retrieve the name of the currently selected media audio output on Android?
I have looked into the Audio Manager and Media Router APIs, but not been able to see any way of retrieving which of the audio devices is the currently selected output.
I've seen that for example Spotify app has this capability:
I didn't try this with wired devices but I did this for Bluetooth devices like this-
You can try this for Bluetooth devices, I hope it helps.