I have a RadioGroup rg1
and I want to get the value of the selected radio button.
I know that I can get the id
of the selected radio button by using:
if(rg1.getCheckedRadioButtonId()!=-1)
int id= rg1.getCheckedRadioButtonId()
that gives me the id , but I want the value of that button.