AnrTypes  |  API reference  |  Android Developers


public final class AnrTypes
extends Object



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 Service.onCreate and Service.onStartCommand / Service.onBind

int ANR_TYPE_FOREGROUND_SHORT_SERVICE_TIMEOUT

A foreground short service took too long to respond to Service.onTimeout.

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

From class java.lang.Object

Object clone()

Creates and returns a copy of this object.

boolean equals(Object obj)

Indicates whether some other object is "equal to" this one.

void finalize()

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

final Class<?> getClass()

Returns the runtime class of this Object.

int hashCode()

Returns a hash code value for the object.

final void notify()

Wakes up a single thread that is waiting on this object's monitor.

final void notifyAll()

Wakes up all threads that are waiting on this object's monitor.

String toString()

Returns a string representation of the object.

final void wait(long timeoutMillis, int nanos)

Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.

final void wait(long timeoutMillis)

Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.

final void wait()

Causes the current thread to wait until it is awakened, typically by being notified or interrupted.

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_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)