How to send multiple sms to single number

I found a problem with the item click listener

replace your method. I hope it works:

@Override
public void onItemClick(AdapterView<?> arg0, View v, int arg2, long arg3) {
    TextView label = (TextView) v.getTag(R.id.tvSMSSend);
    CheckBox checkbox = (CheckBox) v.getTag(R.id.cbSelect);
    Toast.makeText(v.getContext(),
            label.getText().toString() + " " + isCheckedOrNot(checkbox),
            Toast.LENGTH_LONG).show();
    list.get(arg2).setSelected(!list.get(arg2).isSelected());

}

Leave a Comment