Friday, February 22, 2013

Load image from Link


Load image from link to ImageView.

?
1
2
3
4
5
6
7
Bitmap bitmap = BitmapFactory
    .decodeStream((InputStream) new URL(
      .getContent());
     
    img.setImageBitmap(bitmap);
// where img is ImageView

No comments:

Post a Comment