SharedPreference Changes not reflected in my wallpaper service
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I am making a live wallpaper where i need to change the speed of a vehicle in setting scene and it needs to get reflected back to the wallpaper service when i press the return button. In my preference activity, i save the list preference changes in shared preferences like this :- @Override protected void onCreate ( Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ); addPreferencesFromResource ( R . xml . prefs ); ListPreference listPreference = ( ListPreference ) findPreference ( "listPref" ); currValue =