Is there a reason why you are not using : ImageView.setImageResource(resId)
In your example : imageView.setImageResource(R.drawable.image) Yahel On 24 fév, 15:23, qlimax <[email protected]> wrote: > anyone? > > On 23 Feb, 18:47, qlimax <[email protected]> wrote: > > > > > I'm trying to do the following thing without success: > > > ImageView imgView=(ImageView)findViewById(R.id.imgView); > > Uri imgUri=Uri.parse("android.resource:// > > my.package.name/"+R.drawable.image); > > imageView.setImageURI(imgUri) > > > I'm stuck, because the imageView just shows nothing... > > > how I can get an Uri (that I can use as ImageView source) from a local > > resource? > > which kind of Uri are accepted for the ImageView? > > > It would be nice, if someone could help me. > > > IMHO, this topic lacks of documentation.... > > > thank you. > > regards -- 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

