简体   繁体   中英

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.

http://transition.fcc.gov/cgb/consumerfacts/recordcalls.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM