Configuration Changes, State Preservation and the ViewModel
Rotation destroys and rebuilds the activity by default, and ViewModel, saved instance state and rememberSaveable decide what survives it.
What this unit covers
Unit 3: Android Application Fundamentals
- 1 Android Application ComponentsFour kinds of building block, each one an entry point the system can start on its own. · 9 min
- 2 Intents, Intent Filters and the Android ManifestAn intent is a request handed to the system, and the manifest plus intent filters decide which screen or app answers it. · 9 min
- 3 The Android Activity LifecycleSix callbacks that tell a screen when it is born, seen, touched, covered, hidden and gone. · 24 min
- 4 Configuration Changes, State Preservation and the ViewModelRotation destroys and rebuilds the activity by default, and ViewModel, saved instance state and rememberSaveable decide what survives it. · 10 min