Code example for CheckBoxPreference

Methods: setOnPreferenceClickListener, isChecked