~/talk

And' Libraries, Stop Starting up!

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

Compares concrete init patterns—constructor/init function, lifecycle observers, singletons with Application context, and the widespread content provider auto-init used by Firebase and Facebook—showing it runs on the main thread, adds memory/startup overhead, and gives no ordering control. Recommends removing unwanted providers via app manifest tools:node="remove", and details AndroidX Startup: one injected provider, Initializer classes with explicit dependency ordering, AppInitializer for lazy/manual start, stable 1.0.0 (Oct 28 2020), and a claimed ~2ms saving per removed provider; no async or multi‑process support yet.

AI-written summary · about

  1. 0:00Introduction to Android libraries
  2. 1:18Basic library initialization
  3. 5:33Lifecycle observer approach
  4. 8:21Singleton pattern issues
  5. 10:49Content provider auto-init
  6. 16:09Problems with content providers
  7. 18:40Android X Startup library
  8. 23:10Lazy initialization setup
  9. 27:01Limitations of Startup
  10. 28:46Future of library initialization
  11. 29:54Q&A session
~/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.