I've tried to explain my situation here:
http://stackoverflow.com/questions/2307374/need-suggetsion-about-a-mixed-uri-int-id-images-ambient

and posed the same question here:
http://stackoverflow.com/questions/2313148/imageview-setimageuri-does-not-work-when-trying-to-assign-a-r-drawable-x-uri


in short, I want to use Uri, to don't discriminate between images
coming from the sd card or from the phone/apk...

In addiction I'm thinking about a db with a product table with the
following columns:
int _id|string name|string imageUri



can you understand what I mean?

if you think that mine, is a wrong approach, pls let me know... I'm
open to any suggestion



qlimax



On 24 Feb, 14:30, Hekki <[email protected]> wrote:
> 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:
>
> > >ImageViewimgView=(ImageView)findViewById(R.id.imgView);
> > > Uri imgUri=Uri.parse("android.resource://
> > > my.package.name/"+R.drawable.image);
> > >imageView.setImageURI(imgUri)
>
> > > I'm stuck, because theimageViewjust shows nothing...
>
> > > how I can get an Uri (that I can use asImageViewsource) from a local
> > > resource?
> > > which kind of Uri are accepted for theImageView?
>
> > > 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

Reply via email to