Code example for CheckBoxPreference

Methods: setEnabledsetOnPreferenceChangeListener, setChecked