How can I obtain access to local storage? #1413
Unanswered
DanilPechkin
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm using Jetpack Compose and that is my AsyncImage:
And the problem is that it can't load the picture using Uri.
In the Log I see this message:
java.lang.SecurityException: Permission Denial: opening provider com.android.providers.downloads.DownloadStorageProvider from ProcessRecord{} (pid=12319, uid=10158) requires that you obtain access using ACTION_OPEN_DOCUMENT or related APIs
So, my question is: How can I actually obtain access using ACTION_OPEN_DOCUMENT or related APIs?
At now I just pass a Uri into AsyncImage and I don't understand where I can put
ACTION_OPEN_DOCUMENT
and whichrelated APIs
I should use.I really don't want use
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
for it.Please help!
Beta Was this translation helpful? Give feedback.
All reactions