I have problem understanding shared preferences. I have activity where user will insert password, start price, waiting price etc. My plan was to set starting value, and than user would change that value if he wants.
My question is: If I create prefs in onCreate() method, how change would apply (using SharedPreferences.Editor) when every time i run application it should create new values in prefs.
I have problem understanding shared preferences. I have activity where user will insert password,
Share
To obtain shared preferences, use the following method In your activity:
To read preferences:
To edit and save preferences