Hi I am creating an edit page for a database and i want to 

get the string ive passed over via intent

then depending on if the string is equal to "on" or "off"

i want to change the the selection of the radio button

so far i have this

```
radiogroup = R.id.radioGroup1;

if (switch.equals("on")){
    radiogroup.check(R.id.radio1);
    R.id.radio1.setChecked(true);
} else {
    radiogroup.check(R.id.radio0);
    R.id.radio1.setChecked(true);
}

```

btw this is in my oncreate as i want it to run as soon as the Activity is open