1. Download our Official Android App: Forums for Android!

Apps Display image from the Internet with ImageView?

Discussion in 'Android Development' started by MIIISTER NEUGIT, Nov 15, 2010.

  1. MIIISTER NEUGIT

    Thread Starter
    Rank:
    None
    Points:
    15
    Posts:
    17
    Joined:
    Nov 12, 2010

    Nov 12, 2010
    17
    0
    15
    Xbox 360 Game Developer
    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
    Rank:
    None
    Points:
    58
    Posts:
    123
    Joined:
    Sep 30, 2010

    Sep 30, 2010
    123
    15
    58
    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

    Thread Starter
    Rank:
    None
    Points:
    15
    Posts:
    17
    Joined:
    Nov 12, 2010

    Nov 12, 2010
    17
    0
    15
    Xbox 360 Game Developer
    Yea, I figured this out after I posted. Thanks anyway.
     

Share This Page

Loading...