Shared Preferences

  • In this lesson, you'll learn how to persist (store after the app stops running) simple data. This is needed to store the number of buttons chosen, which would be lost during a screen rotation. We'll review the activity lifecycle and use a very simple storage solution, SharedPreferences.