Best practices for saving UI state on Android

Technical session


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.


Saving UI state on Android docs
Learn more
Save UI state in Compose
Learn more
I/O Connect

Join sessions, office hours, and demos at Google's in-person developer events.

I/O Extended

Celebrate I/O technology with a local community-led event near you.