December 2015
Intermediate to advanced
704 pages
20h 29m
English
Applications are about functionality and data. In this chapter, we explore the simplest way to store, manage, and share application data persistently within Android applications: by using shared preferences. The Android SDK includes a number of helpful APIs for storing and retrieving application preferences in different ways. Preferences are stored as groups of key/value pairs that can be used by the application. Shared preferences are most appropriate for storing simple kinds of data, such as application state and user settings, in a persistent fashion.
Many applications need a lightweight data storage mechanism called shared preferences for storing application state, simple ...
Read now
Unlock full access