11. Data Storage Methods

Complicated and robust Android applications often need to use some type of data storage. Depending on the situation, different data storage methods are available to the developer:

Image SharedPreferences for lightweight usage, such as saving application settings and the UI state

Image A built-in SQLite database for more complicated usage, such as saving application records

Image The standard Java flat file storage methods: InputFileStream ...

Get The Android™ Developer’s Cookbook: Building Applications with the Android SDK, Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.