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

2009-10-15 Thread Miguel Paraz
On Oct 13, 10:08 pm, Smelly Eddie ollit...@gmail.com 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

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

2009-10-15 Thread Marc Lester Tan
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();