add SharedPreference to load preference

add SharedPreference to load preference , add
sharedPreferenceChangeListener to monitor the change of the preference