Added in API level 14

ApplicationErrorReport


open class ApplicationErrorReport : Parcelable
kotlin.Any
   ↳ android.app.ApplicationErrorReport

Describes an application error. A report has a type, which is one of

Summary

Nested classes
open

Describes an application not responding error.

open

Describes a battery usage report.

open

Describes an application crash.

open

Describes a running service report.

Constants
static Int

An error report about an application that's not responding.

static Int

An error report about an application that's consuming too much battery.

static Int

An error report about an application crash.

static Int

Uninitialized error report.

static Int

A report from a user to a developer about a running service that the user doesn't think should be running.

Inherited constants
Public constructors

Create an uninitialized instance of ApplicationErrorReport.

Public methods
open Int

open Unit
dump(pw: Printer!, prefix: String!)

Dump the report to a Printer.

open static ComponentName!
getErrorReportReceiver(context: Context!, packageName: String!, appFlags: Int)

open Unit

open Unit
writeToParcel(dest: Parcel, flags: Int)

Properties
static Parcelable.Creator<ApplicationErrorReport!>

ApplicationErrorReport.AnrInfo!

If this report is of type TYPE_ANR, contains an instance of AnrInfo describing the ANR; otherwise null.

ApplicationErrorReport.BatteryInfo!

If this report is of type TYPE_BATTERY, contains an instance of BatteryInfo; otherwise null.

ApplicationErrorReport.CrashInfo!

If this report is of type TYPE_CRASH, contains an instance of CrashInfo describing the crash; otherwise null.

String!

Package name of the application which installed the application this report pertains to.

String!

Package name of the application.

String!

Process name of the application.

ApplicationErrorReport.RunningServiceInfo!

If this report is of type TYPE_RUNNING_SERVICE, contains an instance of RunningServiceInfo; otherwise null.

Boolean

Set if the app is on the system image.

Long

Time at which the error occurred.

Int

Type of this report.

Constants

TYPE_ANR

Added in API level 14
static val TYPE_ANR: Int

An error report about an application that's not responding.

Value: 2

TYPE_BATTERY

Added in API level 14
static val TYPE_BATTERY: Int

An error report about an application that's consuming too much battery.

Value: 3

TYPE_CRASH

Added in API level 14
static val TYPE_CRASH: Int

An error report about an application crash.

Value: 1

TYPE_NONE

Added in API level 14
static val TYPE_NONE: Int

Uninitialized error report.

Value: 0

TYPE_RUNNING_SERVICE

Added in API level 14
static val TYPE_RUNNING_SERVICE: Int

A report from a user to a developer about a running service that the user doesn't think should be running.

Value: 5

Public constructors

ApplicationErrorReport

Added in API level 14
ApplicationErrorReport()

Create an uninitialized instance of ApplicationErrorReport.

Public methods

describeContents

Added in API level 14
open fun describeContents(): Int
Return
Int a bitmask indicating the set of special object types marshaled by this Parcelable object instance. Value is either 0 or android.os.Parcelable#CONTENTS_FILE_DESCRIPTOR

dump

Added in API level 14
open fun dump(
    pw: Printer!,
    prefix: String!
): Unit

Dump the report to a Printer.

getErrorReportReceiver

Added in API level 14
open static fun getErrorReportReceiver(
    context: Context!,
    packageName: String!,
    appFlags: Int
): ComponentName!

readFromParcel

Added in API level 14
open fun readFromParcel(in: Parcel!): Unit

writeToParcel

Added in API level 14
open fun writeToParcel(
    dest: Parcel,
    flags: Int
): Unit
Parameters
dest Parcel: The Parcel in which the object should be written. This value cannot be null.
flags Int: Additional flags about how the object should be written. May be 0 or PARCELABLE_WRITE_RETURN_VALUE. Value is either 0 or a combination of android.os.Parcelable#PARCELABLE_WRITE_RETURN_VALUE, and android.os.Parcelable.PARCELABLE_ELIDE_DUPLICATES

Properties

CREATOR

Added in API level 14
static val CREATOR: Parcelable.Creator<ApplicationErrorReport!>

anrInfo

Added in API level 14
var anrInfo: ApplicationErrorReport.AnrInfo!

If this report is of type TYPE_ANR, contains an instance of AnrInfo describing the ANR; otherwise null.

batteryInfo

Added in API level 14
var batteryInfo: ApplicationErrorReport.BatteryInfo!

If this report is of type TYPE_BATTERY, contains an instance of BatteryInfo; otherwise null.

crashInfo

Added in API level 14
var crashInfo: ApplicationErrorReport.CrashInfo!

If this report is of type TYPE_CRASH, contains an instance of CrashInfo describing the crash; otherwise null.

installerPackageName

Added in API level 14
var installerPackageName: String!

Package name of the application which installed the application this report pertains to. This identifies which market the application came from.

packageName

Added in API level 14
var packageName: String!

Package name of the application.

processName

Added in API level 14
var processName: String!

Process name of the application.

runningServiceInfo

Added in API level 14
var runningServiceInfo: ApplicationErrorReport.RunningServiceInfo!

If this report is of type TYPE_RUNNING_SERVICE, contains an instance of RunningServiceInfo; otherwise null.

systemApp

Added in API level 14
var systemApp: Boolean

Set if the app is on the system image.

time

Added in API level 14
var time: Long

Time at which the error occurred.

type

Added in API level 14
var type: Int

Type of this report. Can be one of TYPE_NONE, TYPE_CRASH, TYPE_ANR, TYPE_BATTERY, or TYPE_RUNNING_SERVICE.