How user denies then the dialog box never pops up again, this is the code I use:
ActivityCompat.requestPermissions(MainActivity.this,new String[]{ Manifest.permission.WRITE_EXTERNAL_STORAGE}, PackageManager.PERMISSION_GRANTED);
Could somebody give me some help please as to how make the dialog pops up again? Thanks in advance.
Ok, turns out android 11 only asks for permission twice, as opposed to previous versions that ask over and over again (this is what I was expecting from the beginning, hence the confusion as to why the function works only two times).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With