I want to detect when a Preference contained in a ListView gets clicked, so that I can launch an intent to manage that selection.
I would h
2018 UPDATE
Today, the onPreferenceTreeClick method has to be overriden in the Preference fragment for this purpose. For example:
public class MySettingsFragment extends PreferenceFragment {
@Override
public boolean onPreferenceTreeClick (PreferenceScreen preferenceScreen,
Preference preference)
{
String key = preference.getKey();
if(key.equals("someKey")){
// do your work
return true;
}
return false;
}
}