O'Reilly logo

The Android™ Developer’s Cookbook: Building Applications with the Android SDK, Second Edition by Nelson To, Ronan Schwarz, James Steele, Phil Dutson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required