title: can't set onCheckedChangeListener to RadioGroup
body: <p>I've created my RadioGroup as following:</p>
  
  <pre><code>RadioGroup radioGroup = (RadioGroup)findViewById(R.id.radioGroup1);
  </code></pre>
  
  <p>Now I wanted to call the onCheckedChangeListener like this:</p>
  
  <pre><code>radioGroup.setOnCheckedChangeListener(new OnCheckedChangeListener() {
  
      public void onCheckedChanged(RadioGroup group, int checkedId) {
  
      }
  
  });
  </code></pre>
  
  <p>First, eclipse suggests me to write it like this, but when having typed it all out, Eclipse underlines my code like this:</p>
  
  <p><img src="https://i.stack.imgur.com/80UGj.png" alt="enter image description here"></p>
  
  <p>the <strong>.setOnCheckedChangeListener</strong> is red and tells me follwing: </p>
  
  <pre><code>The method setOnCheckedChangeListener(RadioGroup.OnCheckedChangeListener) 
  in the type RadioGroup is not applicable for the arguments 
  (new CompoundButton.OnCheckedChangeListener(){})
  </code></pre>
  
  <p>Why won't my Listener work properly although eclipse first tells me to do it like this? </p>