hello , I need to set my app as default dialer in redmi9 32 g and it is not work no thing happen and it not show any message dialog or error my code is
second thing pe_PhoneStateChanged not called this is my code
third thing call record with AR.AudioSource = AR.AS_VOICE_COMMUNICATION work but no sound , AR.AudioSource = AR.AS_VOICE_CALL not work , AR.AudioSource = AR.AS_MIC record my sound not both sounds my v off android 12 i test acr phone and it not record call
I have added all the necessary permissions
B4X:
Dim intent As Intent
intent.Initialize("android.telecom.action.CHANGE_DEFAULT_DIALER", "")
intent.PutExtra("android.telecom.extra.CHANGE_DEFAULT_DIALER_PACKAGE_NAME", Application.PackageName)
StartActivity(intent)
second thing pe_PhoneStateChanged not called this is my code
B4X:
Sub pe_PhoneStateChanged (State As String, IncomingNumber As String)
Log(State & " " & IncomingNumber)
Select Case State
Case "RINGING"
ToastMessageShow(" IncomingNumber, True)
StartRecording
Case "OFFHOOK"
ToastMessageShow("start call", False)
StartRecording
Case "IDLE"
ToastMessageShow("End call", False)
StopRecording
End Select
End Sub
I have added all the necessary permissions