Android open image by path

0

We can see that there are several tutorials on how to save the path of an image, being a photo of the camera or selecting from the gallery, until then ok, but how to search the image again for its path? I tried in several tutorials but I could not find a solution, has anyone ever had this problem?

    
asked by anonymous 10.07.2015 / 17:49

1 answer

1

Just once you have the image address, just call an intent to open.

private void openFullImage( String uriString )
{
    Intent intent = new Intent();
    intent.setAction(Intent.ACTION_VIEW);
    intent.setDataAndType(Uri.parse( uriString ), "image/*");
    startActivity(intent);
}

I hope it solves your problem.

    
15.07.2015 / 04:16