What does “clear data” in application settings do?

穿精又带淫゛_ 提交于 2019-12-11 08:41:23

问题


I have added below a screenshot I took of the app settings page. I want to know what the clear data and the force stop will do to my app?

Specifically, if my app has stored data into a file (I'm making a game and I want to store the progress) and the user presses any one of those buttons, especially clear data, I want to know if my file will be deleted and all the progress of the user in the game will be lost.

If I have stored my files in internal storage, will this happen? If so, should I use external storage? And what about SharedPreferences?


回答1:


on cleardata all internal data of the app will be lost,sharedprefrences,intenal files,database but the data saved on the external storage will remain.So i will advise you to store your data on external storage.



来源:https://stackoverflow.com/questions/24927514/what-does-clear-data-in-application-settings-do

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