Android. Call recording
My app records calls using standard MediaRecorder. After a few seconds after incoming call started, starting call recording (MediaRecorder.start). After this, interlocutor hear me very bad. If I connect/disconnect headphones during recording, then problem disappeared. How do resolve the problem programmatically?
I've resolved this problem. AudioManager.setSpeakerphoneOn() true then false helped me. Thanks to all.
From what I understand, this is possible on some phones, but the general answer is that you can't record calls. The streams for voice are in a lower level of the operating system and aren't accessible on the "application level".
Plus it is illegal unless you follow some very strict guidelines, see the link.