M奇怪的共享首选项问题

M奇怪的共享首选项问题

本文介绍了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).

提取:

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

08-01 00:13