Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

android studio Clearing shared preferences;

SharedPreferences.Editor preferencesEditor = mPreferences.edit();
preferencesEditor.putInt("number", 42);
preferencesEditor.clear();
preferencesEditor.apply();
Source by google-developer-training.github.io #
 
PREVIOUS NEXT
Tagged: #android #studio #Clearing #shared
ADD COMMENT
Topic
Name
2+6 =