Skip to content

Instantly share code, notes, and snippets.

@kojiokb
Created August 25, 2012 05:07
Show Gist options
  • Save kojiokb/3461074 to your computer and use it in GitHub Desktop.
Save kojiokb/3461074 to your computer and use it in GitHub Desktop.
プリファレンス
SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(getApplicationContext());
SharedPreferences.Editor editor = sharedPreferences.edit();
editor.putString("key", "value");
editor.commit();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment