ANR (Application Not Responding)

Mobile Testing

// Definition

An Android system dialog triggered when the main thread of an app is blocked for more than 5 seconds while handling a user input event, or more than 10 seconds for background processing. The OS determines that the app is unresponsive and presents the user with 'Application Not Responding' — options to wait or force-close. ANRs signal that expensive work (network calls, database queries, file I/O, complex computation) has been performed on the main thread instead of being offloaded to a background thread. Android Vitals (Google Play Console) tracks ANR rate as a core quality metric. Reproduce and diagnose ANRs using Android Studio's CPU Profiler, StrictMode (which detects main-thread IO in debug builds), or Perfetto traces. iOS does not use the term ANR but has an equivalent concept: main-thread hangs that trigger watchdog terminations.

// Related terms