public class ANRError
extends java.lang.Error
ANRWatchDog when an ANR is detected.
Contains the stack trace of the frozen UI thread.
It is important to notice that, in an ANRError, all the "Caused by" are not really the cause of the exception. Each "Caused by" is the stack trace of a running thread. Note that the main thread always comes first.
| Modifier and Type | Field and Description |
|---|---|
long |
duration
The minimum duration, in ms, for which the main thread has been blocked.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Throwable |
fillInStackTrace() |