Tuesday, October 13, 2009

[android-developers] Setting ImageView from the web using URI

I need to display an image that is pulled from the web using a url.

I tried the following, unsuccessfully;


boxart.setImageURI(Uri.parse("http://example.com/image.jpg"));


I assume I need to create a local drawable and retrieve the image from
the web.

All the examples in the devGuide use includes resources.

Any help would be great.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate