Category : call-recording

I’m using MediaRecorder and AccessibilityService. It’s working perfect with android 10 and above but Nokia 5.1+ is not hear at end user voice. This is what i tried for recording the call recorder = MediaRecorder() recorder?.apply { setAudioSource(MediaRecorder.AudioSource.VOICE_RECOGNITION) setOutputFormat(MediaRecorder.OutputFormat.AMR_NB) setAudioEncoder(MediaRecorder.OutputFormat.AMR_NB) setAudioSamplingRate(4410) setAudioEncodingBitRate(48000) setOutputFile(audioFile!!.absolutePath) setOnErrorListener { _, _, _ -> } } recorder?.prepare() Source: Android..

Read more

Hi I want to make a call recording app. I am not experienced in android programming. I built some classes but I stacked with this error: 2021-02-10 19:25:03.474 14245-14245/com.codeforlite.myapplication E/MediaRecorder: start failed: -2147483648 2021-02-10 19:25:03.475 14245-14245/com.codeforlite.myapplication E/AndroidRuntime: FATAL EXCEPTION: main Process: com.codeforlite.myapplication, PID: 14245 java.lang.RuntimeException: start failed. at android.media.MediaRecorder.start(Native Method) at com.codeforlite.myapplication.CallReceiver$1.onCallStateChanged(CallReceiver.java:81) at android.telephony.PhoneStateListener$IPhoneStateListenerStub.lambda$onCallStateChanged$10(PhoneStateListener.java:1185) at ..

Read more