Sanat Pandey Sanat Pandey - 6 months ago 33
Android Question

Load image from url

Guys, I have a imageurl as http://image10.bizrate-images.com/resize?sq=60&uid=2216744464
I want to display an image from this url on ImageView but I unable to do that.

How it will be achieved?

Answer
URL url = new URL("http://image10.bizrate-images.com/resize?sq=60&uid=2216744464");
Bitmap bmp = BitmapFactory.decodeStream(url.openConnection().getInputStream());
imageView.setImageBitmap(bmp);
Comments