Code example for CheckBoxPreference

Methods: setOnPreferenceChangeListener, setChecked