Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Best Practices for Saving UI State on Android

Android Developers via YouTube

Overview

Coursera Flash Sale
40% Off Coursera Plus for 3 Months!
Grab it
Explore best practices for saving UI state on Android in this 21-minute video tutorial. Learn how to preserve screen state during configuration changes, activity recreation, and system-initiated process death to enhance user experience. Compare APIs such as remember, rememberSaveable, onSaveInstanceState, ViewModel, and SavedStateHandle for both the View system and Jetpack Compose. Discover techniques for testing saved state APIs, contributing to saved state from custom classes, and controlling rememberSaveable value's lifecycle. Gain insights into persistent storage options and recap key concepts for implementing robust UI state preservation in Android applications.

Syllabus

- Introduction
- Losing app state
- ViewModel
- Persistent storage
- Saved State APIs
- Testing saved state APIs
- SavedStateHandle
- Contribute to saved state from your own classes
- Control rememberSaveable value's lifecycle
- Recap

Taught by

Android Developers

Reviews

Start your review of Best Practices for Saving UI State on Android

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.