I've created an application which uses a shared preference in order for the user to login. The password of the user is saved in the preference. My problem is, how can I change the password in the preference if the user wants to change his/her password?
SharedPreferences prefs = ... // you already know how to use prefs and have one of this objects Editor editor = prefs.edit(); editor.putString("password", "new value"); editor.apply();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With