AnrTypes


class AnrTypes
kotlin.Any
   ↳ android.app.AnrTypes

Defines the types of Application Not Responding (ANR) errors.

Summary

Constants
static Int

The app took too long to start up.

static Int

The app itself due to its own internal logic or behavior has triggered an ANR.

static Int

The app's broadcast receiver took too long to process the message.

static Int

The app's content provider took too long to respond.

static Int

The app's service took too long to finish Service.onCreate and Service.onStartCommand / Service.onBind

static Int

A foreground short service took too long to respond to android.

static Int

The app took too long to respond to an input event.

static Int

The app took too long to respond to an input event because no window was focused.

static Int

The job service took too long to start.

static Int

The ANR type is not one of the other defined types.

static Int

The foreground service took too long to start.

Constants

ANR_TYPE_APPLICATION_START

static val ANR_TYPE_APPLICATION_START: Int

The app took too long to start up.

Value: 10

ANR_TYPE_APP_TRIGGERED

static val ANR_TYPE_APP_TRIGGERED: Int

The app itself due to its own internal logic or behavior has triggered an ANR.

Value: 7

ANR_TYPE_BROADCAST_OF_INTENT

static val ANR_TYPE_BROADCAST_OF_INTENT: Int

The app's broadcast receiver took too long to process the message.

Value: 3

ANR_TYPE_CONTENT_PROVIDER_NOT_RESPONDING

static val ANR_TYPE_CONTENT_PROVIDER_NOT_RESPONDING: Int

The app's content provider took too long to respond.

Value: 6

ANR_TYPE_EXECUTE_SERVICE

static val ANR_TYPE_EXECUTE_SERVICE: Int

The app's service took too long to finish Service.onCreate and Service.onStartCommand / Service.onBind

Value: 5

ANR_TYPE_FOREGROUND_SHORT_SERVICE_TIMEOUT

static val ANR_TYPE_FOREGROUND_SHORT_SERVICE_TIMEOUT: Int

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

Value: 8

ANR_TYPE_INPUT_DISPATCH

static val ANR_TYPE_INPUT_DISPATCH: Int

The app took too long to respond to an input event.

Value: 2

ANR_TYPE_INPUT_DISPATCH_NO_FOCUSED_WINDOW

static val ANR_TYPE_INPUT_DISPATCH_NO_FOCUSED_WINDOW: Int

The app took too long to respond to an input event because no window was focused.

Value: 1

ANR_TYPE_JOB_SERVICE_START

static val ANR_TYPE_JOB_SERVICE_START: Int

The job service took too long to start.

Value: 9

ANR_TYPE_OTHER

static val ANR_TYPE_OTHER: Int

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

Value: 0

ANR_TYPE_START_FOREGROUND_SERVICE

static val ANR_TYPE_START_FOREGROUND_SERVICE: Int

The foreground service took too long to start.

Value: 4