Praveen Praveen - 5 months ago 12
Android Question

How to load an ImageView by URL in Android?

How do you use an image referenced by URL in an

ImageView
?

Answer

Anyway people ask my comment to post it as answer. i am posting.

URL newurl = new URL(photo_url_str); 
mIcon_val = BitmapFactory.decodeStream(newurl.openConnection() .getInputStream());
profile_photo.setImageBitmap(mIcon_val);

thanks.

Comments