-1

I have set an image in ImageView and have its uri and path. Now I want when I click on that image in ImageView, It should pop up or get displayed in orignl size in gallery.

Every code available is for picking up image from gallery, but I want to view a known image in gallery. Please help.

Harish Vats
  • 662
  • 6
  • 21

1 Answers1

2

set this code on clicklistner :

Intent intent = new Intent();
intent.setAction(Intent.ACTION_VIEW);
intent.setDataAndType(Uri.parse("filepath"), "image/*");
startActivity(intent);
Sats
  • 875
  • 6
  • 12