title: How to display image from URL in Android
body: <p>I use this code to display image from url it work but the image is stored in device this is the problem because I want to display this image only if the user is connected to internet</p>
  
  <pre><code>ImageView imageView=(ImageView) findViewById(R.id.imageView3);
  image = BitmapFactory.decodeStream(url.openConnection().getInputStream());
  imageView.setImageBitmap(bitmap);
  </code></pre>
  
  <p>How do I display image from URL in Android?</p>