title: Android ListView with images from special hashmap
body: <p>I try to handle a hashmap to show a listview with images. I search for an answer like here: <a href="https://stackoverflow.com/questions/8411485/how-to-display-images-in-listview-android">How to display Images in ListView android</a>. But it doesn't work...</p>
  
  <p>My Code is:</p>
  
  <pre><code>for (int i = 0; i &lt; nodes.getLength(); i++) {
  Element e = (Element)nodes.item(i);
  Map&lt;String, Object&gt; datum = new HashMap&lt;String, Object&gt;(2);
  String img_url = getValue(e, "pic");
  URL url = null;
                          try {
                              url = new URL(img_url);
                          } catch (MalformedURLException e1) {
                              // TODO Auto-generated catch block
                              e1.printStackTrace();
                          }
                          Bitmap bmp = null; 
                          try {
                              bmp=BitmapFactory.decodeStream(url.openConnection().getInputStream());
                          } catch (IOException e1) {
                              // TODO Auto-generated catch block
                              e1.printStackTrace();
                          }
  
                          datum.put("imgurl", bmp);
                          datum.put("title", getValue(e, "title"));
                          datum.put("date", getValue(e, "description"));
                          datum.put("ex", "Autor: "+getValue(e, "creator")+" · Datum: "+getValue(e, "pubDate"));
                          datum.put("id", getValue(e, "id"));
  
                          data.add(datum);
                  }       
  
  
  final ListView lv = (ListView)findViewById(R.id.listView1);
  ada = new SimpleAdapter(getApplicationContext(), data, R.layout.vlistimage, new String[] {"imgurl", "title", "date", "ex", "id"}, new int[] {R.id.list_image, android.R.id.text1, android.R.id.text2, R.id.text3}); 
  lv.setAdapter(ada);
  </code></pre>
  
  <p>Thanks for a hint / helping!</p>