Managing Data Restoration with the Architecture Components
summary
How Le Bon Coin uses AndroidX SavedState for ViewModel inside Architecture Components to make UI state survive process death, demonstrating a fragment that restores after the process is killed and contrasting volatile ViewModel state with disk persistence. Practical techniques covered include the saved-state module, testing process-death recovery with adb or activity kills, and generating ViewModel factories with assisted injection to reduce boilerplate, with the concrete limit of about 1 MB per saved-state Bundle.
AI-written summary · about
chapters (4)
related talks
41mViewModels, LiveData and Lifecycles, oh my!
24mWhere did my State go
39mClean app design with Architecture Components
30mSurviving a discontinuous world
30mClean App Design with Architecture Components
47mClean app design with Architecture Components
47mAndroid Architecture Component
18mEasy state restoration with Flutter
