Saving UI state on Android
Google I/O 2023 talk
Description
Saving a UI state properly is essential for providing a great UX experience. Your users might be disappointed if your screen doesn’t preserve its state during a configuration change, activity recreation, or system-initiated process death. Learn best practices to save UI state properly in both the View system and Jetpack Compose by comparing APIs such as remember
, rememberSaveable
, onSaveInstanceState
, ViewModel
, and SavedStateHandle
.