Call Recording issue in android

Nityanand Khilari

New member
May 30, 2018
1
0
0
Need Suggestion for Call Recording from both end in android
I have tried multiple ways and not getting required output.
I have tried below code for start Recording and Stored in storage, but recording is not started in some devices.

recorder = new MediaRecorder();
recorder.setAudioSource(MediaRecorder.AudioSource.VOICE_CALL);
recorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP);
recorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);
recorder.setOutputFile(getFilePath());

recorder.prepare();
recorder.start();

Kindly suggest on same.
 

Forum statistics

Threads
955,955
Messages
6,966,204
Members
3,163,441
Latest member
winka9x9