Search Hash Map array for specfic key android
<p>I have an <code>ArrayList</code> of <code>HashMap</code> like this:</p>

<pre><code>ArrayList&lt;HashMap&lt;String, String&gt;&gt; playListSongs = new ArrayList&lt;HashMap&lt;String, String&gt;&gt;();
</code></pre>

<p>I populate the list like this:</p>

<pre><code>for (int i1 = 0; i1 &lt; nl.getLength(); i1++) {
  // creating new HashMap
  HashMap&lt;String, String&gt; map = new HashMap&lt;String, String&gt;();
  Element e = (Element) nl.item(i1);
  // adding each child node to HashMap key =&gt; value
  map.put(KEY_SONGS, String.valueOf(i1));
  map.put(KEY_FILE, parser.getValue(e, KEY_FILE));
  map.put(KEY_DURATION, parser.getValue(e, KEY_DURATION));
  map.put(KEY_FILE, parser.getValue(e, KEY_FILE));
  map.put(KEY_ALBUM, parser.getValue(e, KEY_ALBUM));
  map.put(KEY_TITLE, parser.getValue(e, KEY_TITLE));
  map.put(KEY_ARTIST, parser.getValue(e, KEY_ARTIST));
  map.put(KEY_ARTWORK, parser.getValue(e, KEY_ARTWORK));
  // Songs List of selected playlist
  playListSongs.add(map);
  // list view bind
  PopulateList(playListSongs);
}
</code></pre>

<p>Now i want to Get Album and songs of a specific Artist and song count from HashMap-array-list(playListSongs) to bind it to the list view.</p>

<p>How can I achieve this?</p>
