졸업작품으로 수신차단 어플을 개발중에 통화내역을 커스텀뷰에서 체크박스를 넣어 체크된항목을 추가버튼을 클릭시 데이터베이스에 넣는 작업을 하고있습니다.

그런데 체크박스를 못찾는 것인지 테스트로 넣어놓은 토스트가 뜨지를 않아요 ㅠㅠ

도와주세요...


public class GetCallLog extends ListActivity {
    WordDBHelper mHelper;
    ListView listView;
    Cursor cursor;
    Button bnt;
    int nameidx, numidx, typeidx;
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        bnt = (Button)findViewById(R.id.bnt);
        ArrayList<Person> m_orders = new ArrayList<Person>();
        ContentResolver cr = getContentResolver();
        cursor = cr.query(CallLog.Calls.CONTENT_URI,null,null,null,
                CallLog.Calls.DATE + " DESC");

        nameidx = cursor.getColumnIndex(CallLog.Calls.CACHED_NAME);
        //int dateidx = cursor.getColumnIndex(CallLog.Calls.DATE);
        numidx = cursor.getColumnIndex(CallLog.Calls.NUMBER);
        //int duridx = cursor.getColumnIndex(CallLog.Calls.DURATION);
        typeidx = cursor.getColumnIndex(CallLog.Calls.TYPE);

        //SimpleDateFormat formatter = new SimpleDateFormat("MM/dd HH:mm");
        int count = 0;
        while (cursor.moveToNext()) {
            // 통화 대상자
            String name = cursor.getString(nameidx);
            String number = cursor.getString(numidx);
            if (name == null) {
                name = "UNKNOWN";
            }

            // 통화 종류
            int type = cursor.getInt(typeidx);
            String stype;
            switch (type) {
            case CallLog.Calls.INCOMING_TYPE:
                stype = "수신";
                break;
            case CallLog.Calls.OUTGOING_TYPE:
                stype = "발신";
                break;
            case CallLog.Calls.MISSED_TYPE:
                stype = "부재중";
                break;
            case 14:
                stype = "문자보냄";
                break;
            case 13:
                stype = "문자받음";
                break;
            default:
                stype = "기타:" + type;
                break;
            }
            // 최대 100개까지만
            if (count++ == 100) {
                break;
            }
            Person person = new Person(name, number + " ( " + stype + " ) ");
            m_orders.add(person);
        }
        PersonAdapter m_adapter = new PersonAdapter(this, R.layout.row, m_orders);
        setListAdapter(m_adapter);
        listView = (ListView) findViewById(android.R.id.list);
        listView.setAdapter(m_adapter);
        listView.setItemsCanFocus(false);
        listView.setChoiceMode(ListView.CHOICE_MODE_MULTIPLE);
       
        bnt.setOnClickListener(new OnClickListener()
        {
            @Override
            public void onClick(View v)
            {   
                SQLiteDatabase db;
                ContentValues row;

                SparseBooleanArray a = listView.getCheckedItemPositions();

                String str1 = "test";
                String str2 = "";
               
                /*Toast.makeText(GetCallLog.this,
                        str1,Toast.LENGTH_SHORT).show();*/
                for(int i = 0; i < a.size() ; i++)
                {           
                    if (a.valueAt(i))
                    {
                        db = mHelper.getWritableDatabase();
                        cursor.moveToPosition(a.keyAt(i));

                        str1 = cursor.getString(cursor.getColumnIndex(CallLog.Calls.CACHED_NAME));
                        str2 = cursor.getString(cursor.getColumnIndex(CallLog.Calls.NUMBER));
                        Toast.makeText(GetCallLog.this,"test111",Toast.LENGTH_SHORT).show();  
                        row = new ContentValues();
                        row.put("name", str1);
                        row.put("num", str2);
                        //db.insert("list", null, row);
                        mHelper.close();
                    }
                }
            }
        });

        cursor.close();
       
    }
    private class PersonAdapter extends ArrayAdapter<Person> {

        private ArrayList<Person> items;

        public PersonAdapter(Context context, int textViewResourceId, ArrayList<Person> items) {
                super(context, textViewResourceId, items);
                this.items = items;
        }
        @Override
        public View getView(int position, View convertView, ViewGroup parent) {
                View v = convertView;
                if (v == null) {
                    LayoutInflater vi = (LayoutInflater)getSystemService(Context.LAYOUT_INFLATER_SERVICE);
                    v = vi.inflate(R.layout.row, null);
                }
                Person p = items.get(position);
                if (p != null) {
                        TextView tt = (TextView) v.findViewById(R.id.toptext);
                        TextView bt = (TextView) v.findViewById(R.id.bottomtext);
                        if (tt != null){
                            tt.setText(p.getName());                           
                        }
                        if(bt != null){
                                bt.setText("전화번호: "+ p.getNumber());
                        }
                }
               
                return v;
        }
    }
}