Code example for RadioButton

Methods: setSelected, setOnCheckedChangeListener

0
        mAnalogVal=(TextView)findViewById(av);		
        mBar.setMax(255);
        mBar.setClickable(true);
        myNumber=number;
		 
        mRadioAD.setOnCheckedChangeListener(this);
//        mRadioG.setOnCheckedChangeListener(this); 
        mD1.setOnClickListener(this);
        mD0.setOnClickListener(this);
        mBar.setOnSeekBarChangeListener(this);
        this.setDigital(0);
        this.setAnalog(0);
        this.mRadioAD.setSelected(true);
	} 
 
	public void attachToView(ViewGroup targetView) {
 
	} 
 
	@Override 
	protected void onAccesssoryAttached() {