1

Open image from drawable into gallery intent

view story
linux-howto

http://stackoverflow.com – I would like to open just one image and have pitch-zoom function, so (as I think) easiest way to do that is to open that image in gallery intent. Anybody can share example of how to call gallery intent with particular picture from drawable? I tried to used something like that but can't make it working (wrong file patch?). Intent intent = new Intent(); intent.setAction(Intent.ACTION_VIEW); intent.setDataAndType(Uri.parse("com.me.example/drawable/thisimage.png"), "image/*"); startActivity(intent); (HowTos)