Code example for RadioButton

Methods: setSelected, getId

0
		if(id==mRadioAA.getId()){
//			Log.d(TAG,"onClick-mRadioAA"); 
			mRadioAD.setSelected(false);
		} 
		else 
		if(id==mRadioAD.getId()){
//			Log.d(TAG,"onClick-mRadioAD"); 
			mRadioAD.setSelected(true);
		} 
	} 
	private void sendCommand(String ad, int v){
	   mActivity.sendCommandToService("adk command: set xout-"+ad+"-"+myNumber+"="+v, "");
	} 
 
	@Override 
	public void onProgressChanged(SeekBar seekBar, int progress,
			boolean fromUser) {
		int id=seekBar.getId();
		Log.d(TAG,"onProgressChanged-"+this.myNumber+" id="+id);
		// TODO Auto-generated method stub 
		/* */