Android Apps with Kotlin: ViewModel and Lifecycle

Learn the skills necessary to effectively maintain activity state and simplify coordination with the activity lifecycle using the Android Architecture Componets' ViewModel, Lifecycle, and other related types.
Course info
Rating
(10)
Level
Advanced
Updated
Dec 21, 2018
Duration
2h 25m
Table of contents
Course Overview
Managing Activity State with ViewModel
Maintaining Activity State during System-initiated Shutdowns
Persisting Complex Activity State
Subscribing to Lifecycle Events
Determining Lifecycle State
Description
Course info
Rating
(10)
Level
Advanced
Updated
Dec 21, 2018
Duration
2h 25m
Description

Effectively managing Android activity state and coordinating the lifecycle of components within an activity are essential to providing a high-quality and consistent user experience; however, doing so can sometimes be a challenge. In this course, Android Apps with Kotlin: ViewModel and Lifecycle, you’ll learn how to use the Android Architecture Components’ ViewModel, Lifecycle, and other related types to deliver just such an experience. First, you'll see how to use ViewModel to simplify managing activity-related data and maintain consistent access to that data even when the system recreates the activity in response to device orientation changes. After that, you'll explore how to use ViewModel in cooperation with onSaveInstanceState to assure a more consistent user experience when moving between apps. Next, you'll discover how to leverage Lifecycle events to simplify coordination between life cycle dependent components and the activity that uses them. Finally, you’ll delve into Lifecycle states to create more flexible, easier-to-use life cycle dependent components. By the end of this course, you'll have the necessary skills and knowledge to create Android apps of your own that provide a high-quality and consistent user experience with the Android Architecture Components’ ViewModel, Lifecycle, and other related types.

About the author
About the author

Jim Wilson is president of JW Hedgehog, Inc., a consulting firm specializing in solutions for the Android, iOS, and Microsoft platforms. Jim has over 30 years of software engineering experience, with the past 15 years heavily focused on creating mobile device and location-based solutions.

More from the author
Understanding Android Application Basics
Beginner
4h 16m
Aug 19, 2019
Introduction to Xamarin.Forms
Beginner
3h 38m
May 13, 2019
More courses by Jim Wilson
Section Introduction Transcripts
Section Introduction Transcripts

Course Overview
Hi everyone. My name is Jim Wilson. Welcome to my course, Android Apps with Kotlin: ViewModel and Lifecycle. I'm a managing partner of JWHH, LLC., and I've had the good fortune to have been a professional software developer now for over 30 years, and I've been creating apps for Android since the earliest days of the platform. In this course, you'll learn the skills necessary to work effectively with the Android architecture components ViewModel, lifecycle, and other related types. And you'll do all of this while levering the power and efficient coding experience provided by the Kotlin programming language. Some of the major topics we cover include managing activity state with ViewModel, maintaining activity state during system-initiated shutdowns, persisting complex activity state, subscribing to lifecycle events, determining lifecycle state. By the end of this course, you'll have the skills necessary to create Android apps that provide a high-quality, consistent user experience using the Android architecture components, ViewModel, lifecycle, and other related types. To get the most out of this course, you should already have a solid understanding of the fundamentals, developing Android apps using Kotlin, the purpose and behavior of Android activity lifecycle-related callback methods, the basics of working with RecyclerView. You can learn more about these topics in my courses, Android Apps with Kotlin: Build Your First App, and Android Apps with Kotlin: RecyclerView and Navigation Drawer. I hope you'll join me as we'll learn the skills necessary to provide a high-quality and consistent user experience using the Android architecture components, ViewModel, lifecycle, and other related types with the course, Android Apps with Kotlin: ViewModel and Lifecycle, at Pluralsight.