Tecnologia do Blogger.
RSS

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

valeu Raphaell Dyego, deu certo aqui

On 12 jun, 14:11, Raphaell Dyego <honor...@gmail.com> wrote:
> 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