how to set up the listener for SimpleAdapter
<p>I have created a list/table sorts with the following code.</p>

<pre><code>ListView list = (ListView) findViewById(R.id.list1);
    btn = (Button) findViewById(R.id.btTaken);
    ArrayList&lt;HashMap&lt;String, String&gt;&gt; mylist = new ArrayList&lt;HashMap&lt;String, String&gt;&gt;();
    HashMap&lt;String, String&gt; map = new HashMap&lt;String, String&gt;();
    String Date;
    //list.setOnItemSelectedListener((OnItemSelectedListener) this);
 //   list.setOnItemClickListener(ListItemClick);
    //  cb.setVisibility();
    Date=AttendanceDao.Dates()[0];
    for(i=0;i&lt;AttendanceDao.Dates().length;i++)
    {

    map = new HashMap&lt;String, String&gt;();
    map.put("Date", AttendanceDao.Dates()[i]);
    //map.put("StudentName",Data.Sname()[i]);

    mylist.add(map);
    }

    // ...
    SimpleAdapter mSchedule = new SimpleAdapter(this, mylist, R.layout.att_date_list,
            AttendanceDao.Datemap(), new int[] {R.id.Sid});

    list.setAdapter(mSchedule);
</code></pre>

<p>This part of the code</p>

<pre><code> protected void onListItemClick(ListView l, View v, int position, long id) {//this guy is not working!
            // TODO Auto-generated method stub
            Intent openActivity = new Intent("net.vrixx.activities.ATTENDANCELISTACTIVITY");
                startActivity(openActivity);

        }
</code></pre>

<p>is supposed to listen to the item clicked on my list. But it doesnt work Can anyone figure out why? thanks!</p>
