Saving radio group checkedId with SharedPreferences to make the radio button selection to be the same when resuming Kotlin
I'm trying to program an android app with android studio that counts steps taken by the user. I'm trying to make a settings/options activity where the user can both set their height and preferred measure unit. I was able to code the height selection so that it is saved into SharedPreferences so that every time the user returns to the settings activity the height stays the same.
I'm trying to do the same to the measure unit selection but it doesn't seem to work. I've put the measure unit...