Code example for SharedPreferences

Methods: registerOnSharedPreferenceChangeListener