Android M奇怪的共享首选项问题 [英] Android M weird shared preferences issue

查看:80
本文介绍了Android M奇怪的共享首选项问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在运行Android M Developer Preview 2的Nexus 5上,在卸载/重新安装应用程序时,设备正在检索我很久以前存储的共享首选项,例如布尔isFirstLaunch.

On my Nexus 5 running Android M Developer Preview 2, when uninstalling/reinstalling an app, the device is retrieving shared preferences I stored long ago, for instance a boolean isFirstLaunch.

清除这些错误的唯一方法是从设备设置中手动完成.

The only way to clear these is to do it manually from the device settings.

Android M上的共享首选项行为是否发生了变化?我找不到与此有关的任何文档.

Is there any change in shared preferences behavior on Android M? I can't find any documentation regarding this.

或者Android M Preview 2 ROM可能有错误...

Or maybe the Android M Preview 2 ROM has a bug...

推荐答案

这是因为Android M将具有自动备份(链接).

That is because Android M will feature Automatic Backups (old link).

提取:

自动备份功能可保留您的应用在 用户设备,方法是将其上传到用户的Google云端硬盘帐户,然后 加密它.您或用户无需支付任何数据存储费用 并且保存的数据不计入用户的个人云端硬盘 配额.在"M预览"期间,用户每次最多可以存储25MB Android应用.

The automatic backup feature preserves the data your app creates on a user device by uploading it to the user’s Google Drive account and encrypting it. There is no charge to you or the user for data storage and the saved data does not count towards the user's personal Drive quota. During the M Preview period, users can store up to 25MB per Android app.

这篇关于Android M奇怪的共享首选项问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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