title: Unable to download image from the url
body: <p>Hi please help</p>
  
  <p><strong>Bitmap is null when running on a device but it runs fine when running on Genymotion(Emulator)</strong></p>
  
  <p>I'm trying to download image from a URL
  when i'm running it in Genymotion(Emulator) its running fine and displaying the image,but when i'm running it on a device Bitmap is null.</p>
  
  <p>Below is the code</p>
  
  <pre><code>public void DisplayImage(String url, ImageView imageView)
  {
      imageViews.put(imageView, url);
      Bitmap bitmap = memoryCache.get(url);
      if (bitmap != null)
          imageView.setImageBitmap(bitmap);
      else {
          queuePhoto(url, imageView);
          imageView.setImageResource(stub_id);
      }
  }
  </code></pre>
  
  <p>and this is the url</p>
  
  <pre><code>url=http://www.hugosys.in/www.nett-torg.no/wp-content/uploads/2014/04/Lighthouse3-300x225.jpg
  </code></pre>
  
  <p>Please help me.</p>