Code example for RadioButton

Methods: getIdgetText

0
  {  
    @Override  
    public void onCheckedChanged(RadioGroup group, int checkedId)  
    {  
      // TODO Auto-generated method stub  
      if(checkedId==mRadio1.getId())  
      {             
        /*��mRadio1�����e�Ǩ�mTextView1*/ 
        mTextView1.setText(mRadio1.getText()); 
      }  
      else if(checkedId==mRadio2.getId())  
      {  
        /*��mRadio2�����e�Ǩ�mTextView1*/ 
        mTextView1.setText(mRadio2.getText());  
      }        
    }  
  }; 
} 
Connect your IDE to all the code out there  Get Codota for Java