changing audio output (earphones/phone)

solquest

Member
Hey there.
Is there a way for changing audio output using MD?
There's my case: in the night I connect my phone with my radio alarm using aux cable. When my phone alarm rings, its music come from my radio alarm. But this means that if the electricity run out in the night, I'm be able to hear anything.
So would there be a way for saying 'play the alarm both using aux cable and phone output'?
I don't want it to be played always using phone output, cause if I'm on a train with earphones on, I just want the alarm to be played on my earphones only (I could say; change it when earphones connected are with/without mic').

I'm on Android 10, not rooted.

Thanks.
Luigi.
 

MacroDroidDev

Administrator
Staff member
As far as I know it's not possible to change audio routing like this from a background app. If anyone knows better then please do share!
 

solquest

Member
Hey there.
I ended up contacting that alarm app developer and he added an intent I can invoke with MD for changing it.
Ciao.
 
Top