Skip to content

Instantly share code, notes, and snippets.

@mps
Created June 7, 2012 17:24
Show Gist options
  • Save mps/2890181 to your computer and use it in GitHub Desktop.
Save mps/2890181 to your computer and use it in GitHub Desktop.
Mono for Android Shared Preferences
// 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