Checkbox in ListView non-selectable with event handler
<p>Pretty simple, but its driving me crazy. In the getView method of my custom list adapter I have this code:</p>

<pre><code>chkBox = (CheckBox)convertView.findViewById(R.id.camAlertChk);


    chkBox.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {

        @Override
        public void onCheckedChanged(CompoundButton btn, boolean isChecked) 
        {
            camera.alertsEnabled = isChecked;
            AlertOrchestrator.getInstance().setAlertsEnabled(camera);
        }
    });
</code></pre>

<p>With this code my checkbox is non selectable.  In fact my Activity has two listviews in it and this code makes all listviews (and the checkbox in the top listview) unselectable.</p>

<p>However, if I take out my two lines of code in onCheckedChanged, lists and the checkbox become selectable again.  The onCheckedChanged event is called just fine.  It just don't like any code it in.</p>

<p>Can someone tell me what I'm doing wrong.  </p>
