How do I get the value from HashMap in my ListView?
<p>I've created my own custom adapter by extending <code>BaseAdapter</code>. I just want to be able to grab the string of the <code>value</code> in my <code>onItemClick</code> method (so I can put it as an <code>intent extra</code>). How can I do that?</p>

<p>My custom <code>adapter</code> looks like this:</p>

<pre><code>   private class HashMapAdapter extends BaseAdapter {

        private HashMap&lt;String, String&gt; mMap = new HashMap&lt;String, String&gt;();
        private String[] mKeys;
        private Context mContext;

        private HashMapAdapter(Context context, HashMap&lt;String, String&gt; map) {
            mContext = context;
            mMap = map;
            mKeys = mMap.keySet().toArray(new String[map.size()]);          
        }

        @Override
        public int getCount() {
            return mMap.size();
        }

        @Override
        public Object getItem(int position) {

            return mMap.get(mKeys[position]);
        }

        @Override
        public long getItemId(int position) {
            return position;
        }

        @Override
        public View getView(int position, View convertView, ViewGroup parent) {
//          String key = mKeys[position];

            RowView row;
            if(convertView == null) {
                row = new RowView(getBaseContext());
            } else {
                row = (RowView) convertView;
            }
            row.display(mKeys[position]);
            return row;

        }

    }
</code></pre>
