I cannot find any tutorials on checkbox preference. I can use a listpreference, but I can\'t use checkbox preference. For now, I want that if user sets on the checbox, a toa
You need to add a listener to the Preference in your onCreate method
final CheckBoxPreference checkboxPref = (CheckBoxPreference) getPreferenceManager().findPreference("checkboxPref");
checkboxPref.setOnPreferenceChangeListener(new Preference.OnPreferenceChangeListener() {
public boolean onPreferenceChange(Preference preference, Object newValue) {
Log.d("MyApp", "Pref " + preference.getKey() + " changed to " + newValue.toString());
return true;
}
});