Skip to content
Commitwise
Menu

ANR (Application Not Responding)

An Android error raised when the main thread is blocked too long, typically when input isn't handled within 5 seconds.

Definition

Android shows a dialog offering to close the app, and records a trace of all threads. Common causes are disk or network access on the main thread, locks held by background threads during I/O, slow broadcast receivers and heavy startup work. Google Play's Android vitals treat a user-perceived ANR rate above 0.47% as bad behavior.

In practice

The main thread waits for a lock that a background thread holds during a network call, and the app freezes for 8 seconds.

Learn it in context

Lessons that use this term.

Related terms

Esc

Type to search the whole site.