Hi, all.

I'm having a problem with setImageURI on my ImageView objects. I was
using setimageResource(R.drawable.x), which was working fine, but now
I'm trying to change over to using URIs so that I can be more flexible
about my image source (not constrained to pre-packaged images).

I'm using ImageView.setImageURI(uri), where uri is (for example)
android.resource://com.example.hellogridview/2130837520, which I
created by doing Uri.parse("android.resource://
com.example.hellogridview/" + R.drawable.x). I took this method from
my MediaPlayer, where I created URIs for R.raw wav files from this
path.

It's not throwing any errors that I can see, but it's just displaying
blank images. The images are ~150px each way and I'm displaying them
about half size - would that cause a problem?

Any ideas, please? :)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to