Glide load local image by Uri.
Solution 1:
While waiting for someone to respond, I tried to make a File
instance from the Uri
and load that. It works! Weird!
Glide.with(mContext)
.load(new File(pictureUri.getPath())) // Uri of the picture
.transform(new CircleTransform(..))
.into(profileAvatar);
Solution 2:
If you pass an Uri
instance it better be compliant, it looks like yours doesn't have a schema (file://
).
You can check how Uri
, String
and File
models are loaded to debunk the weirdness :)