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?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
I've resolved this problem. AudioManager.setSpeakerphoneOn() true then false helped me. Thanks to all.
回答2:
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".
回答3:
Plus it is illegal unless you follow some very strict guidelines, see the link.
http://transition.fcc.gov/cgb/consumerfacts/recordcalls.html