I've been trying and searching for an answer for the past 5 hours.
I'm storing image from google plus to local folder and using Glide library to load the image into imageview.
the file uri is file:///storage/emulated/0/MyApp/ProfilePics/profile_user1.jpg
I'm using below code for image loading through glide:
Glide.with(ProfileActivity.this).load(Uri.fromFile(new File(sharedPrefMan.getImageUrl()))).placeholder(R.drawable.placeholder_profile).into(imgProfilePic);
where sharedPrefMan.getImageUrl() returns /storage/emulated/0/MyApp/ProfilePics/profile_user1.jpg
The image is present in the given location.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…