title: Loading IMAGE from JSON URL into listview
body: <p>I am trying to get image from URL then add it to a listview. I can successfully get the image, but I'm struggling with adding it to the listview.</p>
  
  <p>I have tried this way:</p>
  
  <pre><code>    ListView lv = (ListView) findViewById(R.id.list);
  
      try {
  
          URL url = new URL("http://devcms.barcodo.com/Images/ProductImages/ThumbnailImages100/EG-BIRT-ST-JA_th.jpg");
          HttpGet httpRequest = null;
          httpRequest = new HttpGet(url.toURI());
          HttpClient httpclient = new DefaultHttpClient();
          HttpResponse response = (HttpResponse) httpclient.execute(httpRequest);
          HttpEntity entity = response.getEntity();
          BufferedHttpEntity b_entity = new BufferedHttpEntity(entity);
          InputStream input = b_entity.getContent();
          Bitmap bitmap = BitmapFactory.decodeStream(input); 
  
          HashMap&lt;String, Object&gt; docList = new HashMap&lt;String, Object&gt;();
          docList.put("IMAGE", bitmap);
  
          ArrayList&lt;HashMap&lt;String, Object&gt;&gt; al = new ArrayList&lt;HashMap&lt;String, Object&gt;&gt;();
          al.add(docList);
  
          simpleAdapter = new SimpleAdapter(this, al, R.layout.list_item,new String[] { "IMAGE" }, new int[] { R.id.image});
          lv.setAdapter(simpleAdapter);
  </code></pre>
  
  <p>Note: I am able to put it into an ImageView, but want to fetch into a listview.</p>