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.

Need Your Help

How to update UI from one form to another form

c# forms winforms button combobox

I have Form1 which contains a combobox which show some number saved in Database and it also contain a button(butn2) which on click popups a another form and another button(butn1) which updates the ...

Drupal Backup and Restoring

drupal backup recovery

So I wrote this script that basically creates a sql dump of the the drupal databases as well as created a tar of of the www directory. I took this off the server and put it on my local machine. I w...