Display image from the Internet with ImageView?


Last Updated:

  1. MIIISTER NEUGIT

    MIIISTER NEUGIT Member This Topic's Starter

    Joined:
    Nov 12, 2010
    Messages:
    17
    Likes Received:
    0
    I have an image view object declared in the main class for my app

    ImageView iv = new InageView;

    I am able to view a picture in the res/drawable folder but when I use setImageUri method, nothing appears.
     

    Advertisement
  2. RazzleFnDazzle

    RazzleFnDazzle Well-Known Member

    Joined:
    Sep 30, 2010
    Messages:
    123
    Likes Received:
    15
    I'm not sure exactly, but I get Drawables from the internet and set them in the ImageView using setImageDrawable. To get the drawable:

     
  3. MIIISTER NEUGIT

    MIIISTER NEUGIT Member This Topic's Starter

    Joined:
    Nov 12, 2010
    Messages:
    17
    Likes Received:
    0
    Yea, I figured this out after I posted. Thanks anyway.
     

Share This Page

Loading...