You can try this one:
Bitmap bm = null;
try {
URL imageURL = new URL("http://example.com/image.jpg");
BufferedInputStream bis = new
BufferedInputStream(imageURL.openStream(), 1024);
bm = BitmapFactory.decodeStream(bis);
bis.close();
} catch (Exception e) {
// handle
}
then you can call:
boxart.setImageBitmap(bm);
Marc
On Tue, Oct 13, 2009 at 10:08 PM, Smelly Eddie <[email protected]> wrote:
>
> 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 [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
-~----------~----~----~----~------~----~------~--~---