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

LinkedIn Learning

Building an Android App with Architecture Components

via LinkedIn Learning

Overview

Learn best practices and architecture recommendations for building high-quality Android apps using the Android Architecture Components for data persistence and display.

Google now offers a set of recommended components for architecting Android apps. Android developers can learn how to follow these recommendations to improve their initial development process and simplify long-term maintenance. In this course, learn best practices for building high-quality Android apps using the Android Architecture Components for data persistence and display. Instructor David Gassner teaches these concepts in a real-world context by using the Architecture Components to build a simple note-taking app from start to finish. He shows how to define an SQLite database with the Room library, display a list of data with the efficient RecyclerView component, and update the user interface with observable LiveData objects.

Syllabus

Introduction
  • Welcome
  • What you should know
1. Get Started
  • The history and evolution of this app
  • Explore the Architecture Components
  • Create the starting project
  • Import the project from GitHub
  • Create a launcher icon
  • Create other required graphics
  • Add architecture component dependencies
2. Create the User Interface
  • Add a RecyclerView to the main activity
  • Create a custom layout for list rows
  • Create a data entity class
  • Create sample data for testing
  • Display data with a RecyclerView adapter
  • Create the note editor activity
3. Manage Data Persistence with Room
  • Define a Room entity class
  • Implement database operations in a DAO
  • Define an SQLite database with Room
  • Create a custom type converter
  • Create a unit test for database logic
4. Manage Data and Business Logic
  • Create a ViewModel for the list activity
  • Create a repository class
  • Add a feature to insert sample notes
  • Subscribe to LiveData updates
  • Add a feature to delete all notes
5. Edit and Delete Notes
  • Add a ViewModel for the editor activity
  • View an existing note in the editor
  • Edit an existing note
  • Create a new note
  • Delete a note
6. Final Touches
  • Handle device orientation changes
  • Add divider lines to the RecyclerView
Conclusion
  • Next steps

Taught by

David Gassner

Related Courses

Reviews

Start your review of Building an Android App with Architecture Components

Never Stop Learning!

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

Sign up for free