General topic questions
ANR Diagnosis
MediumLess common
Free section · general topics & algorithms
How do you diagnose an ANR?
Reveal model answer
ANR traces, bugreports, StrictMode, Perfetto. Look for main-thread disk/lock contention. Fix by moving work off Main and shortening critical sections.