This chapter describes how to persist data in your Android applications. Persisting data is an important topic in application development because users typically expect to reuse data in the future. For Android, there are primarily three basic ways of persisting data:
The techniques discussed in this chapter enable applications to create and access their own private data. Chapter 8 shows you how to share data across applications.
Android provides the
SharedPreferences object to help you save simple application data. For example, your application may have an option that enables users to specify the font size used in your application. In this case, your application needs to remember the size set by the user so that ...