title: Displaying an image from URL
body: <p>I'm having some troubles displaying an image I am fetching from a URL into an ImageView. With the code I have at the moment, I am getting absolutely nothing. Is there a problem with this code? </p>
  
  <pre><code>Drawable img = image.LoadImageFromWeb(icon);
  imageView.setImageDrawable(img);
  
  public static Drawable LoadImageFromWeb(String iconId) {
          try {
              String url = "http://ddragon.leagueoflegends.com/cdn/4.3.12/img/profileicon/" + iconId + ".png";
              InputStream is = (InputStream) new URL(url).getContent();
              Drawable icon = Drawable.createFromStream(is, "src name");
              return icon;
          } catch (Exception e) {
              return null;
          }
      }
  </code></pre>