Android的:如何使一个特定的共享preference系统重新启动后自行复位? [英] Android: How to make a specific SharedPreference reset itself after the system reboots?

查看:78
本文介绍了Android的:如何使一个特定的共享preference系统重新启动后自行复位?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有我需要的手机重启后自身重置为初始值的共享preference ...任何想法?

I have a SharedPreference that I need to reset itself to its initial value after the phone reboots... any ideas?

推荐答案

您可以看看到的 BOOT_COMPLETED 广播行动,并从接收重置preference。

You could look into the BOOT_COMPLETED broadcast action, and reset the preference from your receiver.

这篇关于Android的:如何使一个特定的共享preference系统重新启动后自行复位?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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