title: How to do something when a checkbox change state?
body: <p>This is my code:</p>
  
  <pre><code>    &lt;CheckBox
          android:id="@+id/sprint_checkbox"
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:text="@string/sprint_game" /&gt;
  
      &lt;CheckBox
          android:id="@+id/marathon_checkbox"
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:text="@string/marathon" /&gt;
  
      &lt;CheckBox
          android:id="@+id/never_ending_checkbox"
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:text="@string/never_ending" /&gt;
  </code></pre>
  
  <p>What i want to do is "detect" when one of these is checked and then set the other two to "disable", so the user can select only one at time.
  I tried to use the ".setOnCheckedChangeListener", but i can't do that, can someone help me with some code?
  Thanks a lot guys!</p>