I'm new to xamarin. I found lot of similar topics and i tried them. but non of them work for xamarin.
I added the permission in the AndroidManifest for OS below Android M
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
and I used This document and implemented the code below.
string[] permissions ={Manifest.Permission.ReadExternalStorage};
ActivityCompat.RequestPermissions(Activity, permissions, STORAGE_REQUEST_CODE);
ActivityCompat.RequestPermissions doesn't show the dialog box.
I found the solution for my problem
RequestPermissions(new String[] { Manifest.Permission.ReadExternalStorage }, STORAGE_REQUEST_CODE);
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