Code example for RadioButton

Methods: setSelected, isChecked

0
	@Override 
	public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
		// TODO Auto-generated method stub 
		int id=buttonView.getId();
		Log.d(TAG,"onCheckChanged-"+this.myNumber+" id="+id);
		if(mRadioAD.isChecked()){
			mRadioAD.setSelected(true);
			if(mD1.isSelected()){
				this.setDigital(1);
				this.sendCommand("d", 1);
			} 
			else 
			if(mD0.isSelected()){
				this.setDigital(0);
				this.sendCommand("d", 0);					
			} 
		} 
		else 
		if(mRadioAA.isChecked()){
			mRadioAD.setSelected(false);
			int v=mBar.getProgress();