Created
June 7, 2012 17:24
-
-
Save mps/2890181 to your computer and use it in GitHub Desktop.
Mono for Android Shared Preferences
This file contains 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
// Store Preferences | |
SharedPreferences pref = context.getSharedPreferences("MY_PREFERENCE", MODE_PRIVATE); | |
Editor editor = pref.edit(); | |
editor.clear(); | |
editor.putString("my_stored_value", "some_value"); | |
editor.commit(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment