How to record call in android? Is it possible?

2020-01-29 15:26发布

问题:

I want to record call from android phone. I am using android.media.MediaRecorder pckg.

Also used following code:

mrec.setAudioSource(MediaRecorder.AudioSource.VOICE_CALL);
mrec.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP);
mrec.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);

But I didn't succeed in recording an incoming call. Can anyone recommend a tested code snippet?

Also, Is this true? http://groups.google.com/group/android-developers/browse_thread/thread/c2bc85eb60ae2aa5?pli=1 http://code.google.com/p/android/issues/detail?id=2117#c226

回答1:

Standard distributions of Android does not support it till now.

You can vote up these if you want:

http://code.google.com/p/android/issues/detail?id=4075

http://code.google.com/p/android/issues/detail?id=2117



回答2:

It's not a software problem and I don't think the baseband firmware vendors will fix this. Most likely because it's illegal in most western countries to record calls without consent of the other person.