1 // get selected radio button from radioGroup
2 int selectedId = radioGroup.getCheckedRadioButtonId();
3
4 // find the radiobutton by returned id
5 radioButton = (RadioButton) findViewById(selectedId);
6
7 Toast.makeText(MyAndroidAppActivity.this,
8 radioButton.getText(), Toast.LENGTH_SHORT).show();
9
1int radioButtonID = radioButtonGroup.getCheckedRadioButtonId();
2View radioButton = radioButtonGroup.findViewById(radioButtonID);