Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Missing MANAGE_DOCUMENTS permission until using the ImagePicker.

$
0
0

Hi,
I'm writing an app that allows the user to select an image from the media on the device and stores the url to it. When the app is restarted I try to display the image again by loading it from the stored url but I get the following error:

"Permission Denial: opening provider com.android.providers.media.MediaDocumentsProvider from ProcessRecord{} () requires android.permission.MANAGE_DOCUMENTS or android.permission.MANAGE_DOCUMENTS"

If I open the ImagePicker before trying to load the old image (even without choosing an image in the picker) then everything works fine. Is there something I need to do to expressly request the MANAGE_DOCUMENTS permission in the code that loads the old image (MANAGE_DOCUMENTS is included in the app manifest)?

SteveR


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>