Automatically select "phone" instead of hearing aid on phone calls

shack6731

New member
My phone automatically selects my hearing aid when I make a phone call (or receive a phone call). I have to manually switch to "phone" every time. Can Macrodroid help me to select "phone" automatically?

(Note 1: my hearing aid doesn't support asha (android audio streaming for hearing aid). When it is connected to my phone during a phone call I can not hear the other person. Note 2: When I go into settings-bluetooth-hearing aid, there is no setting to turn off phone calls.
 

Dm114

Well-known member
My phone automatically selects my hearing aid when I make a phone call (or receive a phone call). I have to manually switch to "phone" every time. Can Macrodroid help me to select "phone" automatically?

(Note 1: my hearing aid doesn't support asha (android audio streaming for hearing aid). When it is connected to my phone during a phone call I can not hear the other person. Note 2: When I go into settings-bluetooth-hearing aid, there is no setting to turn off phone calls.
How do you manually switch to "Phone"?

If you click on a button, you'll probably be able to automate this click with UI Interaction. Did you try it yet?
 

shack6731

New member
How do you manually switch to "Phone"?

If you click on a button, you'll probably be able to automate this click with UI Interaction. Did you try it yet?

Thanks. I have tested it now. When a phone call is active, there is a button to select "phone", "speaker" or "hearing device". Hearing device is always selected by default (except when I am asleep, because then I turn my hearing device off).

I have tried making Call Incoming/Outgoing/Active as triggers. Then in Actions I have selected UI Interaction Click-Text content contains-"hearing" block until result is available. And then another UI Interaction Click-Text content contains "phone" don't wait for result.

This doesn't work. Any ideas? Do I need pro version?
 

Dm114

Well-known member
Thanks. I have tested it now. When a phone call is active, there is a button to select "phone", "speaker" or "hearing device". Hearing device is always selected by default (except when I am asleep, because then I turn my hearing device off).

I have tried making Call Incoming/Outgoing/Active as triggers. Then in Actions I have selected UI Interaction Click-Text content contains-"hearing" block until result is available. And then another UI Interaction Click-Text content contains "phone" don't wait for result.

This doesn't work. Any ideas? Do I need pro version?
Text content doesn't always work because sometimes text is not made of letters but is a drawing (to make it simple).

So you'd rather try with (x,y) coordinates.
 

shack6731

New member
Text content doesn't always work because sometimes text is not made of letters but is a drawing (to make it simple).

So you'd rather try with (x,y) coordinates.
How can I know if a UI Interaction - Click Result is working or not? I'm not sure what "block until result available" means, is there an explanation? Also, what does save to variable mean? If I add one or more variables, what is saved - can I use this to debug?
 

MacroDroidDev

Administrator
Staff member
Only you can see and test the UI that is involved in this case so you will need to experiment with timings and values to get things right. The most likely problem I can predict is that by using the call triggers directly the various UI components that you want to interact it with might not have been displayed at this exact point. You may need a wait before next action to allow some time for the UI to appear (e.g 1-2 seconds might suffice). You can see in the system log (in detailed mode) if a UI Interaction click attempt found anything to click on (the result is true if so).

Block until result available simply means any subsequent action will not run until the UI Interaction completes and the result of the click attempt is known. Save into variable will just save the true/false value (as shown in the system log) into a boolean variable of your choice.
 

dhj49er

Well-known member
Thanks. I have tested it now. When a phone call is active, there is a button to select "phone", "speaker" or "hearing device". Hearing device is always selected by default (except when I am asleep, because then I turn my hearing device off).

I have tried making Call Incoming/Outgoing/Active as triggers. Then in Actions I have selected UI Interaction Click-Text content contains-"hearing" block until result is available. And then another UI Interaction Click-Text content contains "phone" don't wait for result.

This doesn't work. Any ideas? Do I need pro version?
I assume your hearing aids connect via Bluetooth.

Have you tried using the Bluetooth connect/disconnect audio device actions?

Use the call active & call ended triggers to disconnect the hearing aids and connect the hearing aids respectively.

Also try incoming & outgoing call triggers instead of call active, as that would switch the audio before the call becomes active.

When the hearing aids disconnect the OS will automatically route the audio to the phone.
 
Last edited:
Top