I have a RadioGroup rg1 and I want to get the value of the selected radio button.
rg1
I know that I can get the id of the selected radio button
id
try this:
RadioGroup rg = (RadioGroup)findViewById(R.id.youradio); String radiovalue = ((RadioButton)findViewById(rg.getCheckedRadioButtonId())).getText().toString();