I want to record a call from an Android phone. I am using android.media.MediaRecorder pckg.
The following code is also used:
mrec.setAudioSource(MediaRecorder.AudioSource.VOICE_CALL); mrec.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP); mrec.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);
But I was not able to record the incoming call. Can anyone recommend a verified piece of code?
Also, is it 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
Standard Android distributions still do not support it.
You can vote for them if you want:
http://code.google.com/p/android/issues/detail?id=4075
http://code.google.com/p/android/issues/detail?id=2117
This is not a software issue, and I don't think baseband firmware manufacturers will fix this. Most likely, because in most Western countries it is illegal to record calls without the consent of another person.