skip to Main Content

Firebase – I can't get access to the file or 'READ_EXTERNAL_STORAGE' by Karumi Dexter. It is working till Sdk-32 properly but it's not working on 33

Function for choosing video . private void ChooseVideo(){ Dexter.withContext(this) .withPermission(Manifest.permission.READ_EXTERNAL_STORAGE) .withListener(new PermissionListener() { @Override public void onPermissionGranted(PermissionGrantedResponse response) { Intent intent = new Intent( ); //new line added intent.addCategory(Intent.CATEGORY_OPENABLE); intent.setType( "video/*" ); intent.setAction( Intent.ACTION_GET_CONTENT ); startActivityForResult( intent,102 ); } @Override…

VIEW QUESTION

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…

VIEW QUESTION
Back To Top
Search