I have an image path which I am capturing from the camera in the location
file:///storage/emulated/0/Android/data/com.xxxx.xxxxx/files/Pictures/IMG_20190312_1547177544509253258561218.jpg
I am trying to display the particular image in the ImageView my code is :
File imgFile = new File(mMediaUri.toString());
if(imgFile.exists()){
Bitmap myBitmap = BitmapFactory.decodeFile(imgFile.getAbsolutePath());
imageView2.setImageBitmap(myBitmap);
} else {
Log.d("IMAGE_PATH",mMediaUri.toString());
}
Where mMediaUri = the path which I have mentioned above. But somehow its not passing the loop from imgFile.exists()
. Can you please help me in this ? Thanks in advance.