Call Recorder Not Working In Android 10 (q)
Call recorder is recording blank for the duration in Android 10 (Pixel 3A). It was working fine for all phones till Android 8 and in Android 9 most phones were recording only one s
Solution 1:
It's possible using Accessibility Service
.
Remote call recorder and BoldBeast both record perfectly both side voice in Android 10 (Pixel 3A) without having to root or being a system app. Both of them use Accessibility service.
Detailed info here in this link.
Solution 2:
As per Google's new permission policy no other third party apps (Except system apps) can record calls from Android 9 Pie.
This change will not affect previous recordings or call recording in general.
Solution 3:
I am using Realme2pro device having version android 10 it is working for me by using Accessibility
try this code
To implement Accessibility go through this link
publicclassAccessibilityextendsAccessibilityService {
Service mService = null;
@OverridepublicvoidonAccessibilityEvent(AccessibilityEvent event) {
Log.d("MyAccessibilityService", "Shrinidhi: onAccessibilityEvent");
}
@OverridepublicvoidonInterrupt() {
}
@OverrideprotectedvoidonServiceConnected() {
Log.d("MyAccessibilityService", "Shrinidhi: onServiceConnected");
}
@OverridepublicvoidonCreate() {
this.mService = this;
Log.d("MyAccessibilityService", "Shrinidhi: onCreate");
}
}
and add AudioSource to recorder.setAudioSource(MediaRecorder.AudioSource.VOICE_RECOGNITION);
recorder = newMediaRecorder();
recorder.setAudioSource(MediaRecorder.AudioSource.VOICE_RECOGNITION);
recorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP);
recorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);
recorder.setOutputFile(file.getAbsolutePath());
Hope it work :)
Post a Comment for "Call Recorder Not Working In Android 10 (q)"