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
One Line Code
String buisnesstype = ((RadioButton) rdtranscompany.findViewById(rdtranscompany.getCheckedRadioButtonId())).getText().toString();