关于android中的SharedPreferences
我只是想知道,如果我想重置与 SharedPreferences 一起使用的实际首选项文件,我可以重命名首选项文件吗? ,这不是意味着该文件 仍然存在还是会覆盖它?
i was just wondering, if i wanted to reset the actual preference file used with SharedPreferences could i just rename the preference file ? , wouldn't that mean that the file
still exist or does overwrite it ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
才是正确的方法。删除没有引用 SharedPreferences 对象的文件应该会产生相同的结果。
is the proper way. Deleting the file with no referencing
SharedPreferences
objects should result the same.