In this screencast, we’ll cover the new Navigation Architecture Component introduced at Google I/O 2018. This new library aims to simplify navigation from one screen to another. The Android team realized that correctly implementing navigation and dealing with the complex activity and fragment life-cycles made things hard for developers. In this screencast, we’ll see how to apply the navigation component to an existing app and review the major pieces and parts.

Questions we’ll answer in this screencast:

- How do I add the navigation architecture component to an existing project?
- How do I create a navigation graph?
- How do I use the navigation controller to navigate users between screens in an app?

Basic knowledge or experience building Android applications is recommended.

For the More Curious...

Navigation | Google Developer
BNR Guide to Android
Android & Kotlin Courses

Subscribers Only

Transcripts are for subscribers. Create an account today to access our collection of screencasts, skill packs, and more.

Subscribers Only

Project files are only available for subscribers. Create an account today to access our collection of screencasts, skill packs, and more.

Need Help?

If you get stuck, try starting a discussion with Big Nerd Ranch experts in the community tab.

Android Architecture

This screencast is part of a skill pack called Android Architecture.

Room Architecture

6 minutes

While Android SDK provides the APIs for using SQLite databases, they force developers to write a lot of boilerplate code. Room solves this problem by creating the glue code that saves objects to SQLite and reads them into memory. In addition, it performs some compile-time checks to ensure correctness of SQL queries.

LiveData

7 minutes

In the previous video you learned about Room, the object persistence architecture component but we had to use the AsyncTask to perform database access in a background thread. LiveData makes it easier to perform Room's database queries on Android, since it takes care of the activity lifecycle.

ViewModel

6 minutes

In the third video of this series, we’ll add ViewModel to our application. Instead of calling the repository or other components directly from the Activity or Fragment, we can put some of that code in the ViewModel. As a result, our application will become much cleaner and it will be more testable.

WorkManager

5 minutes

In this screencast, we’ll cover a new background work library introduced at Google I/O 2018 - WorkManager. This release will have a huge impact on most Android apps. Background work has always been painful in Android. There are many different ways to schedule a background work and of course they are different

Navigation

8 minutes

The Navigation Architecture Component was introduced at Google I/O 2018. This new library aims to simplify navigation from one screen to another. In this screencast, we’ll see how to apply the navigation component to an existing app and review the major pieces and parts.

Related Screencasts

Explore other screencasts related to this topic.

ConstraintLayout

12 minutes

In this video you will learn about ConstraintLayout. It will cover how to use the graphical editor, how to add constraints to your views and tweak their attributes to position them on screen, and it has an example of converting an existing layout to use ConstraintLayout.

Implementing Adaptive Icons in Android

6 minutes

Android Oreo introduces Adaptive Icons which allow device manufacturers to choose the outline, or mask, of all app icons on the device. This guarantees that all app icons will be uniform on each device, whether they be square, rounded, or circular. In this screencast, part 2 of the series, we'll now show you how to generate your icon to take advantage of this new Android O feature.

Firebase Cloud Storage

10 minutes

Firebase Cloud Storage provides an easy way to store files remotely and fetch them when needed. In this video learn the basics of the cloud storage api to upload, download, and delete files.

Android BiometricPrompt

10 minutes

As of Android P, the FingerprintManager is deprecated in favor of the BiometricPrompt API. In this screencast, we’ll quickly review a previous FingerprintManager implementation and then dive into setting up your application to use BiometricPrompt.

Mocking Basics

6 minutes

Unit testing your classes helps ensure that they work correctly based on controlled inputs but doing the setup can be painful if you have a lot of dependencies. Learn how to create mock objects using Mockito to simplify your setup and improve the readability of your tests.

App Shortcuts in Android

7 minutes

App shortcuts give you the ability to provide convenient shortcuts to specific actions in your application. They provide an entry point to different parts of your application. In this video learn how to implement app shortcuts and give your users quick access to the functionality they want.