How to implement SharedPreferences with RadioButtons in Android
<p>I'm a newb to Android, so please be patient.</p>

<p>I'm trying to set up a new app and it needs to look like this:</p>

<p><img src="http://i.stack.imgur.com/IMhd8.png" alt="enter image description here"></p>

<p>Each category has a number of options. Each option has two Strings to denote the option's name and its configuration information. The user selects an option by tapping on the radio button. There should be two radio groups: one for each category. The image doesn't show it, but there should be "save" and "cancel" buttons at the bottom of the screen. </p>

<p>For the layout, I called getAll in order to display the key and value (which are just TextViews). This is where I'm lost.</p>

<ol>
<li>I don't know how to link the Preference with a RadioButton.</li>
<li>I don't know how to save the changes (because I don't know how to link the Preference to a RadioButton).</li>
<li>I'd also like to implement something like a dirty bit to denote whether there was really a change before saving, but I don't know what the Android best practice for this is.</li>
</ol>

<p>As you can see, I'm completely lost. So, any help would be really, greatly appreciated.</p>
