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

查看:31
本文介绍了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 Drive 帐户和加密它.您或用户无需支付数据存储费用并且保存的数据不计入用户的个人云端硬盘配额.在 M 预览期间,用户最多可以存储 25MB 每个安卓应用.

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天全站免登陆