I am using MediaRecorder class library to develop app for recording voice calls. I am using Moto G mobile (API Level 21) for USB Debugging. After making call, I start to record with below code. It ends up in exception and breaks at recorder.Start(). It creates a file but it doesn't contain any audio and it is zero bytes dummy file.
public MediaRecorder recorder = new MediaRecorder();
Start Call Record:
recorder.SetOutputFile("/sdcard/Download" + "/123.amr");
recorder.Start(); // Exception Hits
End Call Record
Can, anyone help me to solve this issue?