If I have this in hand:
R.drawable.foo
Which is really just a reference to a jpg file, how do I open it in Android's gallery app?
I have found a bunch of references which suggest something along the lines of this:
startActivity(
new Intent(
Intent.ACTION_VIEW,
/* what goes here for the URI?? */
)
);
But what URI do I use?
I'm doing this tutorial and want to open the images in the native Android app when tapped so I can get all that zooming, sharing, etc. for free.
If I can't use a URI here (as suggested here), what should I do to load the image?