SyntaxFix
Write A Post
Hire A Developer
Questions
Try to use the method isChecked();
Like,
selectedRadioButton.isChecked() -> returns boolean.
Refere here for more details on Radio Button