What I wanted to achieve is this: Right after the activity starts, I want that no RadioButton is selected/checked.
My problem is this: When the activity starts, the
use clearCheck() for clearing all checked radiobutton when acticity is started or resumed
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
RadioGroup rg=(RadioGroup)findViewById(R.id.RG);
rg.clearCheck();
}
@Override
protected void onResume() {
RadioGroup rg=(RadioGroup)findViewById(R.id.RG);
rg.clearCheck();
super.onResume();
}