Frank Bozzo
Frank Bozzo

Reputation: 1

Android: How to make a specific SharedPreference reset itself after the system reboots?

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

Upvotes: 0

Views: 329

Answers (1)

Josh Lee
Josh Lee

Reputation: 177875

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

Upvotes: 1

Related Questions