I have a RadioGroup with 3 RadioButtons and a Button in my XML file. How can I get the ID of the checked RadioButton when I hit the Button (I have an OnClickListener set for this button)? Later I want to use Switch statement inside onClick, after checking which RadioButton is checked.

Thank you!