~/talk

Frustration-free orientation changes

Talkat Android Makers 2018 · on Monday, 2018-04-23· [android]

Explains why orientation rotation destroys an Activity and gives concrete fixes: how much to put in onSaveInstanceState (bundle size limits), when to use onRetainNonConfigurationInstance or headless retained fragments, and how modern Android Architecture Components like ViewModel and LiveData let an in-memory cache survive recreation. Demonstrates pitfalls: losing async load results, fragment-transaction crashes after onSaveInstanceState, process-death during startActivityForResult, and practical testing tips (background process limit, developer options) plus which approach actually avoids user-visible rework.

AI-written summary · about

  1. 0:00Intro
  2. 1:31Frustration
  3. 4:27Handling orientation changes
  4. 8:00Handling configuration changes
  5. 13:09Handling configuration changes manually
  6. 13:25Quitting processes
  7. 14:21Framework
  8. 15:43Limitation
  9. 16:57Restore State
  10. 17:25Safe State
  11. 17:55Platform widgets
  12. 19:26What is safe
  13. 19:42What is not safe
  14. 21:16Consequence
  15. 25:13Dont hold on to
  16. 26:18Frozen step example
  17. 28:06Multiprocess step example
  18. 30:26Manual testing
  19. 32:07Other settings
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 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
?
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.