Android. Call recording

对着背影说爱祢 提交于 2019-12-08 07:23:01

问题


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



来源:https://stackoverflow.com/questions/8632247/android-call-recording

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!