title: Retrieve checked CheckBoxes's items in Listview
body: <p>I've got ListActivity and I am using custom CursorAdapter.</p>
  
  <p>In each item of the list I've got also checkbox...</p>
  
  <p>Now I have in my list screen a perm button, when you press on it, </p>
  
  <p>It should find all the checkboxes which are 'checked' and do some operations on the item which it's checkbox is 'checked'.</p>
  
  <p>How can I retrieve all the checked ones?</p>
  
  <p>I've done focusable:false, so I can use OnClickListener, but I don't know how farther then 
  this..
  Thanks,</p>
  
  <p>some code:
  This is in my ListActivity class:</p>
  
  <pre><code> final String columns[] = new String[] { MyUsers.User._ID,
                  MyUsers.User.MSG, MyUsers.User.LOCATION };
  
            int[] to = new int[] { R.id.toptext,   R.id.bottomtext,R.id.ChkBox,
                  R.id.Location};
  
            Uri myUri = Uri.parse("content://com.idan.datastorageprovider/users");
  
            Cursor cursor = getContentResolver().query(myUri, columns, null, null, null);  
  
            startManagingCursor(cursor);  
  
             ListCursorAdapter myCursorAdapter=new ListCursorAdapter(this,R.layout.listitem, cursor, columns, to);
  
             this.setListAdapter(myCursorAdapter);
  </code></pre>
  
  <p>and this is my Custom Cursor adapter class:</p>
  
  <pre><code>public class ListCursorAdapter extends SimpleCursorAdapter
  
  {
  
           private Context context;
      private int layout;
  
      public ListCursorAdapter(Context context, int layout, Cursor c,
              String[] from, int[] to)
      {
          super(context, layout, c, from, to);
  
          this.context = context;
  
          this.layout = layout;
  
      }
  
      @Override
      public View newView(Context context, Cursor cursor, ViewGroup parent)
      {
  
          Cursor c = getCursor();
  
          final LayoutInflater inflater = LayoutInflater.from(context);
          View v = inflater.inflate(layout, parent, false);
                     return v;
            }
  
  @Override
  
      public void bindView(View v, Context context, Cursor c)
      {
          TextView topText = (TextView) v.findViewById(R.id.toptext);
          if (topText != null)
          {
              topText.setText("");
          }
  
          int nameCol = c.getColumnIndex(MyUsers.User.MSG);
          String name = c.getString(nameCol);
          TextView buttomTxt = (TextView) v.findViewById(R.id.bottomtext);
          if (buttomTxt != null)
          {
              buttomTxt.setText("Message: "+name);
          }
  
          nameCol = c.getColumnIndex(MyUsers.User.LOCATION);
          name = c.getString(nameCol);
          TextView location = (TextView) v.findViewById(R.id.Location);
          if (locationLinkTxt != null)
          {
              locationLinkTxt.setText(name);
          }
  
          }
  </code></pre>