Best practices for saving UI state on Android

Intermediate
Technical session

Overview

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.

Resources

Saving UI state on Android docs
Learn more
Save UI state in Compose
Learn more
Connect with developers

Join developer communities around the world for networking, meetups, collaboration, and more.

Find a community
Continue learning

Grow your skills around the Google technology you love.