AnrTypes
public
final
class
AnrTypes
extends Object
| java.lang.Object | |
| ↳ | android.app.AnrTypes |
Defines the types of Application Not Responding (ANR) errors.
Summary
Constants | |
|---|---|
int |
ANR_TYPE_APPLICATION_START
The app took too long to start up. |
int |
ANR_TYPE_APP_TRIGGERED
The app itself due to its own internal logic or behavior has triggered an ANR. |
int |
ANR_TYPE_BROADCAST_OF_INTENT
The app's broadcast receiver took too long to process the message. |
int |
ANR_TYPE_CONTENT_PROVIDER_NOT_RESPONDING
The app's content provider took too long to respond. |
int |
ANR_TYPE_EXECUTE_SERVICE
The app's service took too long to finish |
int |
ANR_TYPE_FOREGROUND_SHORT_SERVICE_TIMEOUT
A foreground short service took too long to respond to |
int |
ANR_TYPE_INPUT_DISPATCH
The app took too long to respond to an input event. |
int |
ANR_TYPE_INPUT_DISPATCH_NO_FOCUSED_WINDOW
The app took too long to respond to an input event because no window was focused. |
int |
ANR_TYPE_JOB_SERVICE_START
The job service took too long to start. |
int |
ANR_TYPE_OTHER
The ANR type is not one of the other defined types. |
int |
ANR_TYPE_START_FOREGROUND_SERVICE
The foreground service took too long to start. |
Inherited methods | |
|---|---|
Constants
ANR_TYPE_APPLICATION_START
public static final int ANR_TYPE_APPLICATION_START
The app took too long to start up.
Constant Value: 10 (0x0000000a)
ANR_TYPE_APP_TRIGGERED
public static final int ANR_TYPE_APP_TRIGGERED
The app itself due to its own internal logic or behavior has triggered an ANR.
Constant Value: 7 (0x00000007)
ANR_TYPE_BROADCAST_OF_INTENT
public static final int ANR_TYPE_BROADCAST_OF_INTENT
The app's broadcast receiver took too long to process the message.
Constant Value: 3 (0x00000003)
ANR_TYPE_CONTENT_PROVIDER_NOT_RESPONDING
public static final int ANR_TYPE_CONTENT_PROVIDER_NOT_RESPONDING
The app's content provider took too long to respond.
Constant Value: 6 (0x00000006)
ANR_TYPE_EXECUTE_SERVICE
public static final int ANR_TYPE_EXECUTE_SERVICE
The app's service took too long to finish Service.onCreate and Service.onStartCommand / Service.onBind
Constant Value: 5 (0x00000005)
ANR_TYPE_FOREGROUND_SHORT_SERVICE_TIMEOUT
public static final int ANR_TYPE_FOREGROUND_SHORT_SERVICE_TIMEOUT
A foreground short service took too long to respond to Service.onTimeout.
Constant Value: 8 (0x00000008)
ANR_TYPE_INPUT_DISPATCH
public static final int ANR_TYPE_INPUT_DISPATCH
The app took too long to respond to an input event.
Constant Value: 2 (0x00000002)
ANR_TYPE_INPUT_DISPATCH_NO_FOCUSED_WINDOW
public static final int ANR_TYPE_INPUT_DISPATCH_NO_FOCUSED_WINDOW
The app took too long to respond to an input event because no window was focused.
Constant Value: 1 (0x00000001)
ANR_TYPE_JOB_SERVICE_START
public static final int ANR_TYPE_JOB_SERVICE_START
The job service took too long to start.
Constant Value: 9 (0x00000009)
ANR_TYPE_OTHER
public static final int ANR_TYPE_OTHER
The ANR type is not one of the other defined types.
This is used as a default when the specific cause of the ANR is not known or does not fit into a more specific category
Constant Value: 0 (0x00000000)
ANR_TYPE_START_FOREGROUND_SERVICE
public static final int ANR_TYPE_START_FOREGROUND_SERVICE
The foreground service took too long to start.
Constant Value: 4 (0x00000004)