How to load an ImageView by URL in Android?

android, bitmap, imageview

Solution

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);

Problem

How do you use an image referenced by URL in an `ImageView`?

Original source

Related problems