Advanced navigation app examples

Combine everything you've learned in this unit about navigation, view model, data binding, and live data by building a more advanced app that also includes custom back stack behavior.


Cupcake app introduction

Video Optional

Get an introduction to the Cupcake app you will be creating in this pathway.

Shared ViewModel


Build a cupcake ordering app, and use a shared ViewModel to share data between the fragments of the same activity.

Navigation and the backstack


Manipulate the back stack in a custom way by modifying the Cupcake app so that the user can cancel a cupcake order.

Test ViewModels and LiveData


Learn how to write unit tests for ViewModels and LiveData.