ImageView.setImageURI does NOT work when trying to assign a R.drawable.X Uri
<p>is related to:</p>

<p><a href="http://stackoverflow.com/questions/2307374/need-suggetsion-about-a-mixed-uri-int-id-images-ambient">http://stackoverflow.com/questions/2307374/need-suggetsion-about-a-mixed-uri-int-id-images-ambient</a></p>

<p>now my problem is that:</p>

<pre><code>ImageView imgView=(ImageView)findViewById(R.id.imgView);
Uri imgUri=Uri.parse("android.resource://my.package.name/"+R.drawable.image);
imageView.setImageURI(imgUri);
</code></pre>

<p>does NOT work . why?</p>

<p>i know that</p>

<pre><code>imgView.setImageDrawable(Drawable.createFromStream(
                    getContentResolver().openInputStream(imgUri),
                    null));
</code></pre>

<p>work.</p>

<p>but that does NOT solve my problem. because I want to set the image with an uri independenty if this come from a resource or come from the camera ACTION_PICK intent...</p>

<p>any suggestions are welcome.
Thank you.
Regards</p>
