Last active
August 29, 2015 14:04
-
-
Save j-onathan/ab661ff49ed629a32844 to your computer and use it in GitHub Desktop.
Android Code Example: Clearing app preferences (from http://www.codota.com/android/scenarios/52fcbda9da0a47f42608d39f/saving-app-preferences?tag=dragonfly)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void clearState() { | |
Editor editor = m_prefs.edit(); | |
editor.remove(PREF_FIRSTRUN); | |
editor.remove(PREF_DONE_REV); | |
editor.remove(PREF_TODO_REV); | |
editor.remove(PREF_NEED_TO_PUSH); | |
editor.commit(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment