Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

LinkedIn Learning

Android Development Essential Training: Manage Data with Kotlin

via LinkedIn Learning

Overview

Learn how to build Android apps that store, manage, and display data in a variety of forms and formats, using Kotlin and the latest tools and best practices for Android developers.

Nearly every app you build will use some kind of data. That data could be a single numeric value, or a complex relational database with multiple tables. This course helps you build Android apps that store, manage, and display data in a variety of forms and formats, using the Kotlin programming language and the latest tools and best practices for Android developers. Learn how to access data from internal resources and assets, external files, and web services; parse strings that are formatted with JSON; and display just the data you want to users. Instructor David Gassner also explains how to read from and write to text files and manage SQLite databases in Android-based applications. The course uses Kotlin—rather than Java—for all examples, leveraging its efficiency and brevity.

Syllabus

Introduction
  • Mobile apps for a data-driven world
  • What you should know
1. Package Static Data in JSON Files
  • Check out the exercise files from GitHub
  • Model an entity in a Kotlin data class
  • Read files from resources
  • Read files from assets
  • Parse JSON strings with Moshi
  • Map JSON and class property names
2. Get Data from a Web Service
  • Acquire data in a repository class
  • Share data with LiveData objects
  • Network permissions and status
  • Add Retrofit and coroutine dependencies
  • Define a Retrofit interface
  • Retrieve remote data with Retrofit
3. Display Data in a RecyclerView
  • Add a RecyclerView to a fragment
  • Create a RecyclerView item layout
  • Create a RecyclerView adapter class
  • Display images dynamically with Glide
  • Add a dynamic background to data items
  • Refresh data with a swipe gesture
4. Display Selected Data Items
  • Handle RecyclerView click events
  • Create and navigate to a detail fragment
  • Add an Up button to a secondary fragment
  • Pass data in a shared ViewModel
  • Display details with data binding
  • Customize data bindings with an adapter
5. Read and Write Files
  • Save files to internal storage
  • Read files from internal storage
  • Manage permissions in a splash screen
  • Request external storage permissions
  • Save files to external storage
6. Manage SQLite Databases with Room
  • Define a database table with Room
  • Define SQL operations in a DAO interface
  • Define an SQLite database with Room
  • Insert and retrieve data with Room
7. Persist Data in Shared Preferences
  • Manage shared preferences with code
  • Use preferences to manage display
  • Create a shared preferences activity
  • Read default shared preferences
Conclusion
  • Next steps

Taught by

David Gassner

Related Courses

Reviews

Start your review of Android Development Essential Training: Manage Data with Kotlin

Never Stop Learning!

Get personalized course recommendations, track subjects and courses with reminders, and more.

Sign up for free