I need to show image from the File type, this my code snippet :
//Part 1 how I'm setting my file (picking image from gallery)
currImageURI = data.getData();
myImage= new File(currImageURI.getPath());
//Part 2 how I'm trying to show my image from the File
ImageView iv = (ImageView) findViewById(R.id.imageView);
iv.setImageURI(Uri.fromFile(myImage));
This is the value of myImage
while debuging :
path : /document/image:19144
This is valid path and valid Image, but I got this Error :
resolveUri failed on bad bitmap uri: file:///document/image%3A19144
So what's the problem over here ? I h've to use the FILE type. Show image from File type .