7

listener sharedpreferences

view full story
linux-howto

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)