I am trying to build an app that needs to record phone calls (mostly outgoing)
I have tried to set the media source to MediaRecorder.AudioSource.VOICE_CALL, which always causes the app to freeze.
I have also tried to set the media source to MediaRecorder.AudioSource.VOICE_DOWNLINK, but this crashes as soon as it connects to the phone call.
I have tried the following permissions:
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS"/>
<uses-permission android:name="android.permission.READ_PHONE_STATE"/>
<uses-permission android:name="android.permission.Permissions.PROCESS_OUTGOING_CALLS"/>
But nothing works.
Any advice for recording phone calls.
Also, I have found some old posts that say only some phones allow recording voice calls.
Is there any way to detect programmatically if this app is running on such a phone (if not, I can direct them to use speaker phone or something)
Thanks!