Thanks guys, I managed to make it work by using the HttpGet and
BitmapFactory classes. However, isn't this consuming a lot of memory? It
might cause a problem when loading large number of images.

-Marc

On Tue, Sep 30, 2008 at 7:24 PM, Mark Murphy <[EMAIL PROTECTED]>wrote:

>
> Marc Lester Tan wrote:
> > Can an ImageView load its content from a remote server?
>
> Not directly, in that there is no setImage() variant that takes a URL,
> IIRC.
>
> However, I believe others have had success using a combination of
> HttpUrlConnection and BitmapFactory to download a graphic and turn it
> into a Bitmap, which can then be passed to the ImageView. I have yet to
> try this technique myself.
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com
> _The Busy Coder's Guide to Android Development_ Version 1.3 Published!
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" 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-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to