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
RadioGroup bhktype_RadioGr = (RadioGroup)findViewById(R.id.bhkypeRadioGroup); int flatTypeId = bhktype_RadioGroup.getCheckedRadioButtonId(); String flat_type = ((RadioButton) findViewById(flatTypeId)).getText().toString();