title: Android CheckBox - Removing a previously setOnCheckedChangeListener
body: <p>I have an application that displays a ListView using a CursorAdapter that I have customized. Within my custom CursorAdapter.bindView, I have a CheckBox object that I set the checked value (based on a column on the cursor) and set a clickListener. Here is my code:</p>
  
  <pre><code>    CheckBox mCheckBox = (CheckBox) view.findViewById(R.id.list_done);
      mCheckBox.setChecked(isDone);
      mCheckBox.setOnCheckedChangeListener(new OnCheckedChangeListener()
      {
          public void onCheckedChanged(CompoundButton buttonView, boolean isChecked)
          {
                  AW.getDB().updateTask(c.getInt(c.getColumnIndex(ToDoDBAdapter.KEY_ID)), isChecked);
                  TD.displayTasks();
          }
      });
  </code></pre>
  
  <p>The only problem is that when Android recycles my views, the onCheckedChangeListener is still active, and thus the call to setChecked() causes that code within the listener to run. I would like to know how to invalidata the onCheckedChangedListener right before the code I have included runs.</p>