Issue record calls on Android 7

  • Replies:0
  • OpenNot stickiedUnanswered
  • Forum posts: 1

May 18, 2017 8:23:27 AM via Website

I want to know is it possible and will it be implemented to record calls on Android 7?

I have tried AudioSource VOICE_CALL,DEFAULT,VOICE_COMMUNICATION,MIC
I am not able to get the other side voice only on Nougat devices, rest of working fine.
I dont know where I am facing problem in Nougat.
My Code is below

           recorder = new MediaRecorder();
             if (audioManager.isSpeakerphoneOn()) {
                recorder.setAudioSource(MediaRecorder.AudioSource.DEFAULT);
             } else if (!audioManager.isSpeakerphoneOn()) {
                recorder.setAudioSource(MediaRecorder.AudioSource.VOICE_CALL);
             }
             recorder.setOutputFormat(MediaRecorder.OutputFormat.AMR_NB);
             recorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);