I am trying to make audio calls using SIP in android. The issue I am facing right now is that when I plug in the wired headset into my device I can hear the audio well, I only cannot speak through the microphone on the headset. So, I end up using the inbuilt microphone on my device.
I know that the setWiredHeadset() is deprecated and cannot be used.
How do I solve this problem? Any help is appreciated. Thanks.
EDIT: I am using the Nexus 5 device for testing purposes