&是什么QUOT;清晰的数据和QUOT;在应用程序设置吗? [英] What does "clear data" in application settings do?

查看:191
本文介绍了&是什么QUOT;清晰的数据和QUOT;在应用程序设置吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我添加了一个截图我把应用程序设置页面的下方。我想知道是什么清除数据强行停止会做我的应用程序?

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?

特别是,如果我的应用程序已存储的数据到一个文件中(我在做一个游戏,我想存储进度)和用户presses这些按钮中的任何一个,尤其清除数据,我想知道,如果我的文件将被删除,并且在游戏中用户的所有进程都将丢失。

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.

如果我有我的存储在内部存储的文件,会出现这种情况?如果是这样,我应该使用外部存储?又是怎么回事共享preferences

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

推荐答案

应用程序的所有内部数据都将丢失,共享prefrences,intenal文件,数据库,但保存在外部存储器中的数据将保持不变。所以我会建议你存储在外部存储你的数据。

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.

这篇关于&是什么QUOT;清晰的数据和QUOT;在应用程序设置吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆