~/talk

Architecture Components: A Better Path Forward (Lifecycle & Live Data)

Talkat Windy City DevFest 2018 · on Friday, 2018-01-12· [android, software-architecture]
links:none on file
slides:none on file

Shows concrete use of Architecture Components: a LocationMonitor lifecycle-aware wrapper that removes onStart/onResume/onPause boilerplate and a StockLiveData that requests updates only when observers are active. Uses ViewModel, LiveData/MutableLiveData with MutableLiveData.setValue vs postValue, and Transformations.map to derive first-letter data. Claims fewer memory leaks and no manual unregistering; passes Lifecycle optionally and offers a LifecycleRegistry fallback for older code. Notes data binding integration is awkward and a performance question about creating 50 components remains unanswered.

AI-written summary · about

  1. 0:00Jonathan Secret
  2. 4:20Life Cycle
  3. 21:47Why Should You Use Live Data
  4. 26:43Mutable Live Data Class
  5. 37:52Performance of Components
~/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.