Android 12 Developer Preview is here! Try it out, and give us your feedback!

Lesson 8: App architecture (UI layer)

Learn how to use Android Jetpack Architecture components, a collection of libraries that help you design robust, testable, and maintainable apps.

 

Store data in ViewModel

Codelab

Improve your app by implementing a ViewModel to retain app data during configuration changes.

Use LiveData with ViewModel

Codelab

Convert the app data in the ViewModel to LiveData and observe the changes to update the UI automatically.

Quiz

Earn your badge for completing Lesson 8: App architecture (UI layer).