How can I dynamically add radio buttons to an activity?
<p>I have an activity where users can change a setting using radio buttons. There may be anywhere from 2 to 7 options, so I want to dynamically add the radio buttons in my onCreate(). With a bit of research I figured out how to do it and documented the results for my own benefit and yours.</p>
