Android App Development Essentials: Local Data Storage

Android App Development Essentials: Local Data Storage

English | 2016 | MP4 | AVC 1280×720 | AAC 48KHz 2ch | 3h 9m | 701 MB

Android developers who need to manage and present data have many tools available to them in the application framework of Android. This course covers a variety of data persistence techniques, including storing data in shared preferences—key-value pairs—in JSON-formatted text files, and in relational databases with SQLite. Join as he demonstrates these data management techniques. He also explains how to use relevant design patterns to model data with Java classes, and how to present data to the user with the Android SDK’s ListView and RecyclerView components.

Topics include:

  • Modeling data in POJO classes
  • Customizing a ListView item display
  • Displaying data in a RecyclerView
  • Creating a custom array adapter
  • Managing shared preferences with Java
  • Creating and importing JSON data files
  • Accessing SQLite from the command line
  • Retrieving data with SQLite queries

Table of Contents

What you should know
How to use the exercise files
Review the starting app

Display Static Data
Model data in POJO classes
Manage data in Java collections
Display data in a ListView
Customize the ListView item display
Create a custom array adapter
Display image assets
Display data in a RecyclerView
Handle user events in a RecyclerView
Pass intent extras to detail activities
Pass parcelable objects as intent extras
Display detail data

Store Data in Shared Preferences
About shared preferences
Manage shared preferences with Java
Create a preferences activity
Listen for changes to a preference

Store Data in Text Files
Work with files in internal storage
Work with files in external storage
Create JSON data files
Import JSON data files

Manage Relational Data with SQLite
SQLite and Android
Create an SQLite database
Manage a database with a DataSource
Insert data into a table
Access SQLite from the command line
Retrieve data with SQLite queries
Filter and sort data

Next steps