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 Jetpack Libraries

via LinkedIn Learning

Overview

Speed up your development workflow with Android Jetpack. Learn how to use Jetpack libraries to build Android apps faster and more efficiently.

Android Jetpack lets you create stable, maintainable apps with well-thought-out architectures. Jetpack libraries help developers focus on best practices, reduce repetition, and write code that runs on all supported Android versions and devices. In this course, instructor David Gassner introduces his favorite Jetpack libraries and functionality using a practical, hands-on project: building a new Android app from scratch. Discover how to display a list of data, create a screen for editing, manage data in memory, add data to persistent storage, and edit and update records. Along the way, you can learn how to leverage the Navigation, Room, and other libraries, as well as features such as RecyclerViews, fragments, and adapter and type converter classes, in your own Android apps. You'll be surprised by how much you can do with such a small amount of code—and how much faster and scalable your development workflow can be—with the addition of Jetpack libraries.

Syllabus

Introduction
  • Explore the Android Jetpack libraries
  • What you should know
  • Install the finished app from Google Play
1. Getting Started
  • The history of Plain Ol' Notes
  • Configure Android Studio for this app
  • Clone the exercise files repo from GitHub
  • Create a launcher icon
  • Create other required graphics
2. Display a List of Data Objects
  • Add a navigation controller to the activity
  • Add a RecyclerView to the main fragment
  • Create a custom layout for list rows
  • Create a data entity class
  • Create sample data for testing
  • Create a RecyclerView adapter
  • Bind data to the RecyclerView
3. Create an Editor Screen
  • Add a second fragment to edit notes
  • Handle a click event on a list item
  • Pass selected data to a fragment
  • Navigate up to a previous destination
4. Manage Data Persistence with Room
  • Turn a data class into a Room entity
  • Implement database operations in a DAO
  • Create a custom type converter
  • Define an SQLite database with Room
  • Create a unit test for database logic
  • Challenge: Add another unit test for database logic
  • Solution: Add another unit test for database logic
5. Manage Data and Business Logic
  • Add an options menu to the main fragment
  • Add sample notes to the database
  • Support selecting RecyclerView items
  • Delete selected notes from the database
  • Challenge: Support deleting all notes
  • Solution: Support deleting all notes
6. Edit and Update Notes
  • Display a selected note in the editor fragment
  • Edit existing notes
  • Create new notes
  • Maintain editor state through configuration changes
  • Maintain note selections through configuration changes
Conclusion
  • Next steps

Taught by

David Gassner

Related Courses

Reviews

Start your review of Building an Android App with Jetpack Libraries

Never Stop Learning!

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

Sign up for free