~/talk

Process death and state restoration in ViewModels

Talkat droidcon Americas 2020 · 2020-11-16..11-17· [android, frontend-architecture]
slides:none on file

Shows that ViewModel + Jetpack saved‑state (SavedStateHandle) plus minimal persisted keys reliably restore UI after a real process kill; demonstrates problems with naively serializing large results into bundles (causes transaction too large), builds a sample fragment that survives rotations and full process death, and tests restoration with adb shell am kill, Android Studio terminate and the Venom helper. Integrates factories via Dagger assisted inject (and notes Hilt removes boilerplate) and proves the approach works.

AI-written summary · about

  1. 0:00Introduction and agenda
  2. 1:59Process lifecycle basics
  3. 4:53Process priority categories
  4. 7:47Activities and singletons limitations
  5. 10:16Saving state callbacks
  6. 13:29Bundle behavior and limitations
  7. 15:43State persistence strategies
  8. 20:21Testing process death scenarios
  9. 24:01Basic ViewModel implementation
  10. 25:45Surviving process death with SavedStateHandle
  11. 29:39Introducing SaveStateModule
  12. 33:36Assisted injection simplification
  13. 36:05Hilt integration overview
  14. 38:00Q&A and closing
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.