Hi,
The company I work for is developing a device that connects and communicates through an Android phone's audio jack.
Recently we've run into a problem where a specific phone (Samsung S7710 Galaxy Xcover 2) does not always recognize the microphone part.
Looking at AudioManager | Android Developers it would seem that it should be possible to force a "wired headset" (ie. headphones and microphone) indication, but documentation isn't very clear how this would be achieved.
My gut feel is that this is most likely controlled via the setParameters() call, but so far I have been unable to find anything in documentation, code or the internet to indicate what the appropriate key:value pair would be.
Can anyone give me pointers as to possible key:value pair values, or, if I'm on the wrong path to begin with, in which way can this be done?
The phone in question currently runs Android 4.1.2.
The company I work for is developing a device that connects and communicates through an Android phone's audio jack.
Recently we've run into a problem where a specific phone (Samsung S7710 Galaxy Xcover 2) does not always recognize the microphone part.
Looking at AudioManager | Android Developers it would seem that it should be possible to force a "wired headset" (ie. headphones and microphone) indication, but documentation isn't very clear how this would be achieved.
My gut feel is that this is most likely controlled via the setParameters() call, but so far I have been unable to find anything in documentation, code or the internet to indicate what the appropriate key:value pair would be.
Can anyone give me pointers as to possible key:value pair values, or, if I'm on the wrong path to begin with, in which way can this be done?
The phone in question currently runs Android 4.1.2.