title: how do i get the value from the android listview?
body: <p>Hi this is my code i want to access the <code>KEY_ID</code> that i put in maplist on list item click in a variable..
  Please Help me How i can do this.</p>
  
  <pre><code>ArrayList (HashMap)  (String, String) mapList = new ArrayList(HashMap(String, String)) ();
      XMLParser parser = new XMLParser();
      Document doc = parser.getDomElement(xml); 
  // getting DOM element
      NodeList nl = doc.getElementsByTagName(KEY_Route);
  
      // looping through all song nodes &lt;song&gt;
      for (int i = 0; i &lt; nl.getLength(); i++) {
          // creating new HashMap
          HashMap&lt;String, String&gt; map = new HashMap&lt;String, String&gt;();
  
          Element e = (Element) nl.item(i);
  
          // adding each child node to HashMap key =&gt; value
  
          map.put(KEY_ID, parser.getValue(e, KEY_ID));
          map.put(KEY_SchoolName, parser.getValue(e, KEY_SchoolName));
          map.put(KEY_ChildrenName, parser.getValue(e, KEY_ChildrenName));
          map.put(KEY_AlertTime, parser.getValue(e, KEY_AlertTime));
          map.put(KEY_RouteName, parser.getValue(e, KEY_RouteName));
          map.put(KEY_Notification, parser.getValue(e, KEY_Notification));
          map.put(KEY_StopName, parser.getValue(e, KEY_StopName));
          // adding HashList to ArrayList
          mapList.add(map);
      }
  
      list = (ListView) findViewById(R.id.list);
  
      // Getting adapter by passing xml data ArrayList
      adapter = new LazyAdapter(this, mapList);
      list.setAdapter(adapter);
  
      // Click event for single list row
      list.setOnItemClickListener(new OnItemClickListener() {
  
          @Override
          public void onItemClick(AdapterView&lt;?&gt; parent, View view,
                  int position, long id) {
              int idw = position;
              long logss = id;
  
  // There i want to access the KEY_ID..              
  
              } catch (Exception e) {
                  e.printStackTrace();
                  progressDialog.dismiss();
              }
  
          }
      });
  }
  </code></pre>