~/talk

Stricter StrictMode

Talkat droidcon NYC 2017 · 2017-09-25..09-26· [android, web-performance]
links:none on file
slides:none on file

Android O adds about three new StrictMode detectors and expands thread and VM policies that catch disk reads/writes, network access, unbuffered IO, leaked Activities/Closables and more. Developer builds should enable all detectors but use weaker penalties first; options include penalty death, dialog, log or flashing border. Workarounds include reapplying policy with postAtFrontOfQueue in application onCreate because of a policy-clobber bug, and a reflection hack to intercept violations (replace thread‑local list or VM hashmap). Fixes: move work off UI thread, buffer IO, and always close resources.

AI-written summary · about

  1. 0:00Introduction
  2. 0:12What is StrictMode
  3. 3:21Why performance matters
  4. 5:27Detectors in StrictMode
  5. 9:00VM policy violations
  6. 12:14Enabling StrictMode
  7. 15:45Penalty options
  8. 18:56Custom callbacks
  9. 23:31Fixing violations
  10. 28:30Summary and Q&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.