I’m novice in Android development and now I’d really like to learn Shared Preferences. I’ve googled it so many times and I don’t think I quite mastered it.
I believe this Shared Preferences will help me to store username and a password on my login screen activity. Thanks you!
I made some videos about this as an audition for a job. They helped me get the job, and they’re still available on Vimeo, so hopefully they can help you out.
Part 1: Saving Data
Part 2: Retrieving Data
Also, for what it’s worth, be careful storing usernames and passwords in SharedPreferences. You can do it there, but read up on the risks in this other SO question: What is the most appropriate way to store user settings in Android application