ApplicationErrorReport
open class ApplicationErrorReport : Parcelable
| kotlin.Any | |
| ↳ | android.app.ApplicationErrorReport | 
Describes an application error. A report has a type, which is one of
-  TYPE_NONEuninitialized instance ofApplicationErrorReport.
-  TYPE_CRASHapplication crash. Information about the crash is stored incrashInfo.
-  TYPE_ANRapplication not responding. Information about the ANR is stored inanrInfo.
-  TYPE_BATTERYuser reported application is using too much battery. Information about the battery use is stored inbatteryInfo.
-  TYPE_RUNNING_SERVICEuser reported application is leaving an unneeded serive running. Information about the battery use is stored inrunningServiceInfo.
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  | |
| Public methods | |
|---|---|
| open Int | |
| open Unit | Dump the report to a Printer. | 
| open static ComponentName! | getErrorReportReceiver(context: Context!, packageName: String!, appFlags: Int) | 
| open Unit | readFromParcel(in: Parcel!) | 
| open Unit | writeToParcel(dest: Parcel, flags: Int) | 
| Properties | |
|---|---|
| static Parcelable.Creator<ApplicationErrorReport!> | |
| ApplicationErrorReport.AnrInfo! | If this report is of type  | 
| ApplicationErrorReport.BatteryInfo! | If this report is of type  | 
| ApplicationErrorReport.CrashInfo! | If this report is of type  | 
| 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  | 
| 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
static val TYPE_ANR: Int
An error report about an application that's not responding.
Value: 2TYPE_BATTERY
static val TYPE_BATTERY: Int
An error report about an application that's consuming too much battery.
Value: 3TYPE_CRASH
static val TYPE_CRASH: Int
An error report about an application crash.
Value: 1TYPE_RUNNING_SERVICE
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: 5Public constructors
ApplicationErrorReport
ApplicationErrorReport()
Create an uninitialized instance of ApplicationErrorReport.
Public methods
describeContents
open fun describeContents(): Int
| Return | |
|---|---|
| Int | a bitmask indicating the set of special object types marshaled by this Parcelable object instance. Value is either 0orandroid.os.Parcelable#CONTENTS_FILE_DESCRIPTOR | 
dump
open fun dump(
pw: Printer!,
prefix: String!
): Unit
Dump the report to a Printer.
getErrorReportReceiver
open static fun getErrorReportReceiver(
context: Context!,
packageName: String!,
appFlags: Int
): ComponentName!
writeToParcel
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 either0or a combination ofandroid.os.Parcelable#PARCELABLE_WRITE_RETURN_VALUE, and android.os.Parcelable.PARCELABLE_ELIDE_DUPLICATES | 
Properties
anrInfo
var anrInfo: ApplicationErrorReport.AnrInfo!
If this report is of type TYPE_ANR, contains an instance of AnrInfo describing the ANR; otherwise null.
batteryInfo
var batteryInfo: ApplicationErrorReport.BatteryInfo!
If this report is of type TYPE_BATTERY, contains an instance of BatteryInfo; otherwise null.
crashInfo
var crashInfo: ApplicationErrorReport.CrashInfo!
If this report is of type TYPE_CRASH, contains an instance of CrashInfo describing the crash; otherwise null.
installerPackageName
var installerPackageName: String!
Package name of the application which installed the application this report pertains to. This identifies which market the application came from.
runningServiceInfo
var runningServiceInfo: ApplicationErrorReport.RunningServiceInfo!
If this report is of type TYPE_RUNNING_SERVICE, contains an instance of RunningServiceInfo; otherwise null.
type
var type: Int
Type of this report. Can be one of TYPE_NONE, TYPE_CRASH, TYPE_ANR, TYPE_BATTERY, or TYPE_RUNNING_SERVICE.
