try this if you want your radio button to be checked based on value of some variable e.g. "genderStr" then you can use following code snippet
if(genderStr.equals("Male"))
genderRG.check(R.id.maleRB);
else
genderRG.check(R.id.femaleRB);