title: setImageDrawable dont work with URL
body: <p>i want to set Images from Url into an imageView. For testing I took some pictures into drawable folder. </p>
  
  <pre><code>//creat a list of images and put images inside
      final int[] imageList = new int[]{R.drawable.ic_test_img_1, R.drawable.ic_test_img_2, R.drawable.ic_test_img_3,
              R.drawable.ic_test_img_4, R.drawable.ic_test_img_5, R.drawable.ic_test_img_6};
  
      //for each picture into the list...
      for (int i = 0; i &lt; imageList.length; i++) {
  
          //set RelativeLayout
          final RelativeLayout relView = new RelativeLayout(this);
          //set Params for the RelativeLayout
          relView.setLayoutParams(new RelativeLayout.LayoutParams((windowWidth - 80), windowHeight - 80));
          relView.setX(40);
          relView.setY(40);
          relView.setTag(i);
          //set BackgroundColor RelativeLayout
          relView.setBackgroundColor(Color.WHITE);
  
          //set ImageView
          ImageView img = new ImageView(this);
          //set the image from the list into the imageView
          img.setImageResource(imageList[i]);
          //set params to RelativLayout
          img.setLayoutParams(new RelativeLayout.LayoutParams((windowWidth), windowHeight));
          //show image
          relView.addView(img);
  </code></pre>
  
  <p>That works great. Now I want to set images from an ArrayList of URLs. I wrote this code:</p>
  
  <pre><code>//for each picture into the list...
      for (int i = 0; i &lt; imageUrl.size(); i++) {
  
          //set RelativeLayout
          final RelativeLayout relView = new RelativeLayout(this);
          //set Params for the RelativeLayout
          relView.setLayoutParams(new RelativeLayout.LayoutParams((windowWidth - 80), windowHeight - 80));
          relView.setX(40);
          relView.setY(40);
          relView.setTag(i);
          //set BackgroundColor RelativeLayout
          relView.setBackgroundColor(Color.WHITE);
  
          //set ImageView
          final ImageView img = new ImageView(this);
          //set the image from the list into the imageView
  
          final String url = imageUrl.get(i);
  
          new Thread() {
  
              public void run () {
                  URL myUrl = null;
                  try {
                      myUrl = new URL(url);
                  } catch (MalformedURLException e) {
                      e.printStackTrace();
                  }
                  InputStream inputStream = null;
                  try {
                      inputStream = (InputStream)myUrl.getContent();
                  } catch (IOException e) {
                      e.printStackTrace();
                  }
                  Drawable drawable = Drawable.createFromStream(inputStream, null);
                  img.setImageDrawable(drawable);
              }
          }.start();
  
          //set params to RelativLayout
          img.setLayoutParams(new RelativeLayout.LayoutParams((windowWidth), windowHeight));
          //show image
          relView.addView(img);
  </code></pre>
  
  <p>This code didn't work. There are no pictures inside the imageView. What is wrong with the Code?</p>