Android Studio – How to take storage permission in Android 13?
BroadcastReceiver File class CallReceiver : BroadcastReceiver() { private var mediaRecorder : MediaRecorder? = null override fun onReceive(context: Context?, intent: Intent?) { val state : String if(intent?.action.equals("android.intent.action.PHONE_STATE")){ if(intent?.extras != null){ state = intent.getStringExtra(TelephonyManager.EXTRA_STATE).toString() when(state){ TelephonyManager.EXTRA_STATE_RINGING -> { Log.d("CallRec", "Ringing......") } TelephonyManager.EXTRA_STATE_OFFHOOK…