Most times, you will want to put your RadioButton widgets inside of a RadioGroup.
The RadioGroup is a LinearLayout that indicates a set of radio buttons whose state
is tied, meaning only one button out of the group can be selected at any time. If you
assign an android:id to your RadioGroup in your XML layout, you can access the
group from your Java code and invoke: