Building an Android App with Architecture Components
2h 29mBeginner2018-05-16
Authors

David Gassner
Author of 60+ video-based training courses for software developers
Course details
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.
Learning objectives
Exploring the Architecture Components
Creating the user interface
Managing data persistence with Room
Updating the UI with observable LiveData objects
Creating, editing, and deleting notes
Handling device orientation changes
Learning objectives
Exploring the Architecture Components
Creating the user interface
Managing data persistence with Room
Updating the UI with observable LiveData objects
Creating, editing, and deleting notes
Handling device orientation changes
Skills covered
Android DevelopmentAndroidMobile DevelopmentGoogleProject
Concepts
0. Introduction
- 01 - Welcome
- 02 - What you should know
1. Get Started
- 03 - The history and evolution of this app
- 04 - Explore the Architecture Components
- 05 - Create the starting project
- 06 - Import the project from GitHub
- 07 - Create a launcher icon
- 08 - Create other required graphics
- 09 - Add architecture component dependencies
2. Create the User Interface
- 10 - Add a RecyclerView to the main activity
- 11 - Create a custom layout for list rows
- 12 - Create a data entity class
- 13 - Create sample data for testing
- 14 - Display data with a RecyclerView adapter
- 15 - Create the note editor activity
3. Manage Data Persistence with Room
- 16 - Define a Room entity class
- 17 - Implement database operations in a DAO
- 18 - Define an SQLite database with Room
- 19 - Create a custom type converter
- 20 - Create a unit test for database logic
4. Manage Data and Business Logic
- 21 - Create a ViewModel for the list activity
- 22 - Create a repository class
- 23 - Add a feature to insert sample notes
- 24 - Subscribe to LiveData updates
- 25 - Add a feature to delete all notes
5. Edit and Delete Notes
- 26 - Add a ViewModel for the editor activity
- 27 - View an existing note in the editor
- 28 - Edit an existing note
- 29 - Create a new note
- 30 - Delete a note
6. Final Touches
- 31 - Handle device orientation changes
- 32 - Add divider lines to the RecyclerView
Conclusion
- 33 - Next steps