~/talk

The A,B and C of Lifecycle Components

Talkat droidcon Berlin 2018 · 2018-06-25..06-27· [android]
slides:none on file

Explains that Android Architecture Components (Lifecycle, LifecycleOwner, LifecycleObserver, LiveData, ViewModel) replace fragile activity/fragment callbacks with concrete APIs: uses appcompat 26.1.0 and lifecycle‑extensions, shows a custom owner built with LifecycleRegistry that dispatches events manually, demos a sensor-backed LiveData that automatically registers/unregisters, and warns that ProcessLifecycleOwner initializer injects a ContentProvider so the owner auto‑inits for all apps. Notes the surprising 700 millisecond timeout that determines background/foreground transitions and that ViewModel+LiveData survive configuration changes without manual unsubscription.

AI-written summary · about

  1. 0:00Introduction and speaker intro
  2. 1:05Lifecycle challenges in Android
  3. 2:31What are lifecycle components
  4. 3:36Understanding the Lifecycle class
  5. 5:01LifecycleOwner interface explained
  6. 7:46Lifecycle services and ProcessLifecycleOwner
  7. 11:36ProcessLifecycleOwner delay and side effects
  8. 15:26ActivityLifecycleCallbacks vs ProcessLifecycleOwner
  9. 17:36Creating custom lifecycle owners
  10. 20:04Lifecycle observers and annotations
  11. 22:10Default lifecycle observer callbacks
  12. 23:56LiveData for lifecycle-aware data
  13. 28:09ViewModel and configuration changes
  14. 31:20Summary and resources
  15. 32:02Q&A
~/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.