Radio button working
<p>I have created a radio button in my app..now on Checked of radiobutton i call a fuction..and its working fine..but my problem is that once i checked the radiobutton then and again click of that radioButton doesnt make it unchecked..so how that can be done..the code i have written is..</p>

<pre><code>super.onCreate(savedInstanceState);
    setContentView(R.layout.setting_frm);
    rb1=(RadioButton)findViewById(R.id.option1);
    rb1.setOnCheckedChangeListener(new OnCheckedChangeListener() {
        public void onCheckedChanged(CompoundButton v, boolean arg1) {
            // TODO Auto-generated method stub
            if(rb1.isChecked() == true)
                t1.setText("Selected is : "+rb1.getText());
            if(rb1.isChecked() == false)
                t1.setText("Selected is : ");
        }
    });

    t1=(TextView)findViewById(R.id.TextView01);
}
</code></pre>
