Managing LifeCycle and ViewModel Data
Offered By: Pluralsight
Course Description
Overview
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.
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.
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.
Syllabus
- Course Overview 1min
- Managing Activity State with ViewModel 38mins
- Maintaining Activity State during System-initiated Shutdowns 23mins
- Persisting Complex Activity State 25mins
- Subscribing to Lifecycle Events 29mins
- Determining Lifecycle State 26mins
Taught by
Jim Wilson
Related Courses
3D Graphics in Android: Sensors and VRImperial College London via Coursera A Simple Picture Storing App with Java and Android Studio
Coursera Project Network via Coursera Advanced App Development in Android Capstone
Imperial College London via Coursera Capstone MOOC for "Android App Development"
Vanderbilt University via Coursera Access NFC in an Android Studio Project
Coursera Project Network via Coursera