应用程序更新时,使用 openFileOutput 方法创建的文件将被删除
我使用 Context 类中的 openFileOutput 方法将一些用户数据保存在内部存储中。 问题是,当我更新应用程序时,所有这些文件都被删除。有什么办法可以避免这些文件被删除吗?
问候。
I'm saving some user data in the internal storage using the openFileOutput method in Context class.
The problem is that when I update the app all these files are removed. Is there any way to avoid these files to be removed?
Regads.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
当您的应用程序更新时,它们不会被删除。当您的应用程序被卸载时,它们将被删除。也许您正在卸载并重新安装应用程序,而不是进行就地升级。
They are not removed when your app is updated. They will be removed when your app is uninstalled. Perhaps you are uninstalling and reinstalling your app instead of doing an in-place upgrade.