find list view choice mode multiple events
<p>how to find checked events in choice mode multiple.</p>

<p>I am using ontemselected method it is not working for me</p>

<pre><code> ArrayAdapter&lt;String&gt; adapter = new ArrayAdapter&lt;String&gt;(this,android.R.layout.simple_list_item_multiple_choice,getIntent().getStringArrayExtra("agents"));
            ListView list = (ListView)findViewById(R.id.ListView01);
            list.setAdapter(adapter);
            list.setChoiceMode(ListView.CHOICE_MODE_MULTIPLE);
            list.setSelected(true);
            list.setClickable(true);
            list.setOnItemSelectedListener(new OnItemSelectedListener() {
                public void onItemSelected(AdapterView&lt;?&gt; arg0, View arg1,
                        int arg2, long arg3) {
                    // TODO Auto-generated method stub

                   Log.d("checked",""+arg2);        


                }

                @Override
                public void onNothingSelected(AdapterView&lt;?&gt; arg0) {
                    // TODO Auto-generated method stub
                }

            });

            }catch (Exception e) {
                // TODO: handle exception
                e.printStackTrace();
            }
</code></pre>
