~/talk

Internals of Android Architecture Components

Talkat Mobile Era 2017 · 2017-10-05..10-06· [android, frontend-architecture]
links:none on file
slides:none on file

Android Architecture Components claim to fix lifecycle and configuration-change bugs by using three core libraries: Lifecycle, ViewModel, LiveData. ViewModel actually uses an internal retained fragment to survive rotations, LiveData only pushes updates when the view is STARTED/RESUMED, and onCleared disposes subscriptions so network calls aren’t duplicated and context leaks stop. A SingleLiveEvent handles one‑time messages. Works cleanly with MVVM, can be bolted onto MVP as a hack, and integrates with RxJava/Dagger; example code shows two lines to get a ViewModel and observe LiveData.

AI-written summary · about

  1. 0:00Introduction and problem overview
  2. 3:32Lifecycle and configuration challenges
  3. 10:54Solutions with Android Architecture Components
  4. 21:14Handling one-time actions
  5. 27:45Q&A and summary
~/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.