Chapter 4. Local Data Management
In this chapter, you will find patterns and techniques to efficiently use, manage, and roam data on mobile devices. It also investigates SQLite database creation and usage strategies. The chapter is divided into the following sections:
- Data in mobile applications
- Application data
- Local filesystem
- Data roaming
- SQLite
- Patterns and best practices
- Backup/roaming
Data in mobile applications
The term "data" can refer to different types of information and storage locations in mobile app development. It can be used to describe a volatile state that is created and destroyed each time a view in the application is used, or it might refer to persisted settings and configuration information that are required to run the application, or even the data stored in the local filesystem. Each type of data is created and persisted or destroyed throughout the lifecycle of the application or a view in the application. We can talk about four distinct groups for this discussion...