ArrayAdapter<String> doesn't support getCheckedItemIds()?
<p>I hope to use lv.getCheckedItemIds().length to get the sum of selected items.
It seems that ArrayAdapter doesn't support getCheckedItemIds(), right?</p>

<pre><code>private void InitListView(int pos) {
    List&lt;String&gt; msgList = getSMS(pos);
    ArrayAdapter&lt;String&gt; adapter2 = new ArrayAdapter&lt;String&gt;(this,
            android.R.layout.simple_list_item_multiple_choice, msgList);
    lv.setAdapter(adapter2);
    lv.setChoiceMode(ListView.CHOICE_MODE_MULTIPLE);
    lv.setOnItemClickListener(new OnItemClickListener() {
        @Override
        public void onItemClick(AdapterView&lt;?&gt; arg0, View arg1, int arg2,
                long arg3) {
            SetSelectedAndTotal();
        }
    });
}

private void SetSelectedAndTotal(){
    selectedAndTotal.setText(lv.getCheckedItemIds().length+ "/"
            + lv.getCount());       
}


    public List&lt;String&gt; getSMS(int pos) {
        List&lt;String&gt; sms = new ArrayList&lt;String&gt;();
        Uri uriSMSURI = Uri.parse(valueList.get(pos));
        Cursor cur = getContentResolver().query(uriSMSURI, null, null, null,
                null);

        while (cur.moveToNext()) {
            String address = cur.getString(cur.getColumnIndex("address"));
            String body = cur.getString(cur.getColumnIndexOrThrow("body"));
            sms.add("Number: " + address + " .Message: " + body);

        }
        return sms;
    }
</code></pre>
