Hi
I am attempting to code the process of making a phone call and turning the 'hands-free' speaker on. I have tried the suggestions from a thread around 2017 and found that they won't work on Android 9/10 and beyond. It appears the Audio Manager uses a different/new method of 'set route' to switch the direction of the sound output. Does anyone have a routine/library which works on later Android versions?
I am attempting to code the process of making a phone call and turning the 'hands-free' speaker on. I have tried the suggestions from a thread around 2017 and found that they won't work on Android 9/10 and beyond. It appears the Audio Manager uses a different/new method of 'set route' to switch the direction of the sound output. Does anyone have a routine/library which works on later Android versions?