How do I load an image in the gallery app given an `R.drawable.foo` reference?
<p>If I have this in hand:</p>

<pre><code>R.drawable.foo
</code></pre>

<p>Which is really just a reference to a jpg file, how do I open it in Android's gallery app?</p>

<p>I have found a bunch of references which suggest something along the lines of this:</p>

<pre><code>startActivity(
    new Intent(
        Intent.ACTION_VIEW,  
        /* what goes here for the URI?? */
    )
); 
</code></pre>

<p>But what URI do I use?</p>

<p>I'm doing <a href="http://developer.android.com/resources/tutorials/views/hello-gallery.html" rel="nofollow">this tutorial</a> and want to open the images in the native Android app when tapped so I can get all that zooming, sharing, etc. for free.</p>

<p>If I can't use a URI here (as suggested <a href="http://stackoverflow.com/questions/2307374/need-suggestion-about-a-mixed-uri-int-id-images-ambient">here</a>), what should I do to load the image?</p>
