Tecnologia do Blogger.
RSS

Re: [androidbrasil-dev] Exibir imagem da Web em um ImageView

Tenta:

ImageView img = (ImageView) v.findViewById(R.id.img);
String imageUrl = URLdaIMAGEM;
try {
Bitmap bitmap = BitmapFactory.decodeStream((InputStream)new
URL(imageUrl).getContent());
img.setImageBitmap(bitmap);
} catch (MalformedURLException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}

  • Digg
  • Del.icio.us
  • StumbleUpon
  • Reddit
  • RSS

0 comentários:

Postar um comentário