In android, you can play and record sound in the speaker mode: setSpeakerphoneOn(boolean on)
.
In this case, the system will use the loudspeaker and a special 'loud' record configuration for the mic (I am not sure how it is called properly).
The speakerphone mode is not compatible with any headphones/headsets, so I do not use it with them. It is OK with headsets. But with headphones (without a mic), I have to speak directly to the phone's microphone, because the sound record level is much lower than in the speakerphone mode.
My questions is whether there is a way to output sound to headphones and record using the above mentioned 'loud' record configuration?