I have a togglebutton which is not responding to my setChecked(...) method. Here is the code:
mBool = mPrefs.getBoolean(\"buttondefault\", true); Boolean b =
Please use primitive boolean to set the state
//set true or false based on your prefs boolean mBool = true; mToggle.setChecked(mBool);