code: public static void storeContentInSharedPreferences(SharedPreferences sharedPreferences, String key, String value ) {
  		Editor editor = sharedPreferences.edit();
  		editor.putString(key, value);
  		editor.commit();
  	}
docs: Store the key, value in SharedPreferences