Upgrading Android Version cleans application data?

痞子三分冷 提交于 2019-12-04 07:08:42

问题


I've received a strange bug report:

After a OTA update of the SO from 2.1 to 2.2 the SharedPreferences have been wiped, thus making my app return to the 1st time screen.

Is this a normal behaviour, wipe of the SharedPreferences on system update although maintaining the app installed?

Thanks


回答1:


Shared Preferences data will remain.

Kindly check the following link which provides a good analysis of your problem.

http://groups.google.com/group/android-developers/browse_thread/thread/246aae66e0caf302/908be552b1d86158?lnk=gst&q=Shared+Preferences#908be552b1d86158



来源:https://stackoverflow.com/questions/4973154/upgrading-android-version-cleans-application-data

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!