I am working on quiz application in android. We have created Select.java page which displays the questions and options(with radio buttons) from sqlite datab
In RadioGroup Class you can use method getCheckedRadioButtonId();
RadioGroup rg = findViewById(R.id.radioGroup); rg.getCheckedRadioButtonId();
Returns the identifier of the selected radio button in this group. Upon empty selection, the returned value is -1.