Code example for CheckBoxPreference

Methods: setOnPreferenceClickListener, setChecked