The Android Developer’s Cookbook: Building Applications with the Android SDK
by James Steele, Nelson To
9. Data Storage Methods
Complicated and robust Android applications often need to utilize some type of data storage. Depending on the situation, different data storage methods are available to the developer:
• Shared Preferences for lightweight usage, such as saving application settings and the user interface (UI) state
• A built-in SQLite database for more complicated usage, such as saving application records
• The standard Java flat file storage methods: InputFileStream and OutputFileStream.
These are discussed in this chapter. Also discussed is the Content Provider Android component that is used to share data between applications. It should be noted that another basic data storage method managed by the Android system, the onSaveInstanceState() ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access