~/talk

How the Android Framework Monitors, Processes, and Triggers ANRs

Talkat droidcon New York 2022 · 2022-09-01..09-02· [android, observability]
links:none on file
slides:none on file

Explains concrete ANR behavior and tooling: Android triggers 5 seconds for activities only when there is user input, broadcast receivers time out at 10 seconds, foreground services at ~20s and background services up to ~200s while ContentProviders can ANR at 1 second. Google Play Console treats a session as a device-day and uses percent thresholds (eg 0.47%) so counts can drop without the percentage improving, and Crashlytics ANR uploads require Android 11+. Embrace captures samples from 1s and builds flame graphs to find common root causes.

AI-written summary · about

  1. 0:00Introduction to ANRs
  2. 2:59Limitations of ANR data
  3. 6:12How Android captures ANRs
  4. 9:25ANR trigger rules
  5. 12:35Services and ANR thresholds
  6. 14:21Broadcast receivers and ANRs
  7. 15:44ANR data collection challenges
  8. 17:52Avoiding ANRs best practices
  9. 22:52Improving ANR resolution
  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.