listener sharedpreferences

view full story

http://stackoverflow.com – I've a problem with this code. I want keep preferences values in my app but I've problem with the listener. Does not work, its does not save new values. Any idea about error(s)? public void onCreate(){ SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(this); listener = new SharedPreferences.OnSharedPreferenceChangeListener() { public void onSharedPreferenceChanged(SharedPreferences prefs, String listpref) { if(!preferencesChanged)preferenze(); } }; sp.registerOnSharedPreferenceChangeListener(li (HowTos)