title: Set Image to a ImageView from URL
body: <p>I have Imageview and a link to the picture on the Internet. I set this picture to the ImageView like this,</p>
  
  <pre><code>public ImageView iv;
  iv = (ImageView) findViewById(R.id.imageView);
  String img = "https://www.google.com/images/srpr/logo11w.png";
  iv.setImageDrawable(Drawable.createFromPath(img));
  </code></pre>
  
  <p>What I want to do is download a picture from the internet to my android application and apply it to an ImageView. I want to make it as easy as possible.</p>
  
  <p>helped me</p>
  
  <pre><code>String img_url= //url of the image
      URL url=new URL(img_url);
      Bitmap bmp; 
      bmp=BitmapFactory.decodeStream(url.openConnection().getInputStream());
      ImageView iv=(ImageView)findviewById(R.id.imageview);
      iv.setImageBitmap(bmp);
  </code></pre>