title: Implementing OnClickListener to list items of a list
body: <p>I used list view to list the items of my SQLite database as follows:</p>
  
  <pre><code>listView = (ListView) findViewById(R.id.listView1);
  db.open();
  Cursor c = db.getAllHistory();
  ArrayList&lt;String&gt; temparr = new ArrayList&lt;String&gt;();
  if (c.moveToFirst()) {
      do {
          temparr.add(c.getString(0)+'\t'+c.getString(1)+'\t'+c.getString(2)+'\t'+c.getString(3)+'\t'+c.getString(4)+'\t');
      } while(c.moveToNext());
      ArrayAdapter&lt;String&gt; adapter = new ArrayAdapter&lt;String&gt;(this,android.R.layout.simple_list_item_1, temparr);
      listView.setAdapter(adapter);
  } else {
      db.close();
  }
  </code></pre>
  
  <p>Now I want to access the specific list item by using OnItemClickListener. How should i do it?</p>