Join David Gassner for an in-depth discussion in this video Exploring local data storage options, part of Android App Development: Local Data Storage (2013).
The Android SDK includes many options for storing data locally with an Android app.…All of these options give you the ability to persist information between…application launches or between device sessions--that is after a device is…shutdown and then restarted--because in all of the options that I'm going…to describe, you'll be saving files to local flash memory or other persistent media.…Here are the three major options for local data storage:…shared preferences, arbitrary files that you simply create and save to disk, or…SQLite relational databases.…
Here is a little bit more detail about each of the options.…A shared preference is simply a key-value pair, a key, which is a string, and then…a value, which can be one of many data types.…It's up to you as the Android application developer or designer to decide what…preferences are needed for your application.…Typically, a preference is used either to present specific information to the…user or to determine the behavior or appearance of an application.…
- Exploring local data storage options
- Creating an Android virtual device
- Starting a new project
- Defining preferences with Java and activities
- Creating and reading JSON and XML data files
- Creating a new SQLite database
- Inserting and retrieving data in the database
Skill Level Intermediate
1. Getting Started
2. Using Application Preferences
3. Using Internal and External File Storage
4. Working with SQLite Databases
5. Managing and Displaying SQLite Data
Improving the data display9m 29s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.