Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

shared preferences saved value unsaved in android

preferences = getApplicationContext().getSharedPreferences(PREFERENCES_NAME, 0);
SharedPreferences.Editor editor = preferences.edit();
editor.putString(SETTINGS_BACKGROUND_IMAGE, "okok");
editor.apply();
 
PREVIOUS NEXT
Tagged: #shared #preferences #saved #unsaved #android
ADD COMMENT
Topic
Name
5+4 =