-
Notifications
You must be signed in to change notification settings - Fork 402
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Android 10/11 Scoped Storage #190
Comments
Here is a patch with the modifications I've done to make it work. Note that
|
Thanks for your reporting, could you please open a pull request for it? |
I modified the Version 1.5.7, because I was unable to use your master version yesterday. I had an issue with the GlideAppModule class: |
Currently at Android 10, it works fine without specifying I think your error is caused by permission issue. |
Android 11 can be installed as virtual device |
hey, you should work on this! |
I checked documents about scoped storage earlier, and I believe current implementation works fine, please provide more info if it doesn't work in your case. |
The library should not use
File
, but always work with the Uri. Doing that, Glide is allowed to open the input stream via the Android Content Provider/MediaStore Uri and all is fine.Scoped Storage is enabled in Android 10, as long as you don't use
android:requestLegacyExternalStorage="true"
in your manifest. In Android 11 it will probably be the default, so your library won't work anymore then.Right now on Android 10, without the specified option, the following error is raised:
Glide in combination with a default ImageView, or even
com.github.chrisbanes.photoview.PhotoView
however displayes my local images without errors by using thecontent
Uri.The text was updated successfully, but these errors were encountered: