# Print output for @column tags ?>
Developers

- Design
- Develop
- Distribute

Developer Console

## Most visited

## Recently visited

## Results for

Summary: Nested Classes | Constants | Inherited Constants | Fields | Ctors | Methods | Inherited Methods

# ApplicationErrorReport

`public class ApplicationErrorReport`
`extends Object` `implements Parcelable`

java.lang.Object
↳ | android.app.ApplicationErrorReport

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

- `TYPE_NONE` uninitialized instance of `ApplicationErrorReport`.
- `TYPE_CRASH` application crash. Information about the crash is stored in `crashInfo`.
- `TYPE_ANR` application not responding. Information about the ANR is stored in `anrInfo`.
- `TYPE_BATTERY` user reported application is using too much battery. Information about the battery use is stored in `batteryInfo`.
- `TYPE_RUNNING_SERVICE` user reported application is leaving an unneeded serive running. Information about the battery use is stored in `runningServiceInfo`.

## Summary

### Nested classes
`class` | `ApplicationErrorReport.AnrInfo` Describes an application not responding error.
`class` | `ApplicationErrorReport.BatteryInfo` Describes a battery usage report.
`class` | `ApplicationErrorReport.CrashInfo` Describes an application crash.
`class` | `ApplicationErrorReport.RunningServiceInfo` Describes a running service report.

### Constants
`int` | `TYPE_ANR` An error report about an application that's not responding.
`int` | `TYPE_BATTERY` An error report about an application that's consuming too much battery.
`int` | `TYPE_CRASH` An error report about an application crash.
`int` | `TYPE_NONE` Uninitialized error report.
`int` | `TYPE_RUNNING_SERVICE` A report from a user to a developer about a running service that the user doesn't think should be running.

### Inherited constants
From interface `android.os.Parcelable`
`int` | `CONTENTS_FILE_DESCRIPTOR` Descriptor bit used with `describeContents()`: indicates that the Parcelable object's flattened representation includes a file descriptor.
`int` | `PARCELABLE_WRITE_RETURN_VALUE` Flag for use with `writeToParcel(Parcel, int)`: the object being written is a return value, that is the result of a function such as "`Parcelable someFunction()`", "`void someFunction(out Parcelable)`", or "`void someFunction(inout Parcelable)`".

### Fields
`public static final Creator<ApplicationErrorReport>` | `CREATOR`
`public ApplicationErrorReport.AnrInfo` | `anrInfo` If this report is of type `TYPE_ANR`, contains an instance of AnrInfo describing the ANR; otherwise null.
`public ApplicationErrorReport.BatteryInfo` | `batteryInfo` If this report is of type `TYPE_BATTERY`, contains an instance of BatteryInfo; otherwise null.
`public ApplicationErrorReport.CrashInfo` | `crashInfo` If this report is of type `TYPE_CRASH`, contains an instance of CrashInfo describing the crash; otherwise null.
`public String` | `installerPackageName` Package name of the application which installed the application this report pertains to.
`public String` | `packageName` Package name of the application.
`public String` | `processName` Process name of the application.
`public ApplicationErrorReport.RunningServiceInfo` | `runningServiceInfo` If this report is of type `TYPE_RUNNING_SERVICE`, contains an instance of RunningServiceInfo; otherwise null.
`public boolean` | `systemApp` Set if the app is on the system image.
`public long` | `time` Time at which the error occurred.
`public int` | `type` Type of this report.

### Public constructors
`ApplicationErrorReport()` Create an uninitialized instance of `ApplicationErrorReport`.

### Public methods
`int` | `describeContents()` Describe the kinds of special objects contained in this Parcelable instance's marshaled representation.
`void` | `dump(Printer pw, String prefix)` Dump the report to a Printer.
`static ComponentName` | `getErrorReportReceiver(Context context, String packageName, int appFlags)`
`void` | `readFromParcel(Parcel in)`
`void` | `writeToParcel(Parcel dest, int flags)` Flatten this object in to a Parcel.

### 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 timeout, int nanos)` Causes the current thread to wait until another thread invokes the `notify()` method or the `notifyAll()` method for this object, or some other thread interrupts the current thread, or a certain amount of real time has elapsed.
`final void` | `wait(long timeout)` Causes the current thread to wait until either another thread invokes the `notify()` method or the `notifyAll()` method for this object, or a specified amount of time has elapsed.
`final void` | `wait()` Causes the current thread to wait until another thread invokes the `notify()` method or the `notifyAll()` method for this object.
From interface `android.os.Parcelable`
`abstract int` | `describeContents()` Describe the kinds of special objects contained in this Parcelable instance's marshaled representation.
`abstract void` | `writeToParcel(Parcel dest, int flags)` Flatten this object in to a Parcel.

## Constants

### TYPE_ANR

    public static final int TYPE_ANR

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

Constant Value: 2 (0x00000002)

### TYPE_BATTERY

    public static final int TYPE_BATTERY

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

Constant Value: 3 (0x00000003)

### TYPE_CRASH

    public static final int TYPE_CRASH

An error report about an application crash.

Constant Value: 1 (0x00000001)

### TYPE_NONE

    public static final int TYPE_NONE

Uninitialized error report.

Constant Value: 0 (0x00000000)

### TYPE_RUNNING_SERVICE

    public static final int TYPE_RUNNING_SERVICE

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

Constant Value: 5 (0x00000005)

## Fields

### CREATOR

    public static final Creator<ApplicationErrorReport> CREATOR

### anrInfo

    public ApplicationErrorReport.AnrInfo anrInfo

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

### batteryInfo

    public ApplicationErrorReport.BatteryInfo batteryInfo

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

### crashInfo

    public ApplicationErrorReport.CrashInfo crashInfo

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

### installerPackageName

    public String installerPackageName

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

### packageName

    public String packageName

Package name of the application.

### processName

    public String processName

Process name of the application.

### runningServiceInfo

    public ApplicationErrorReport.RunningServiceInfo runningServiceInfo

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

### systemApp

    public boolean systemApp

Set if the app is on the system image.

### time

    public long time

Time at which the error occurred.

### type

    public int type

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

## Public constructors

### ApplicationErrorReport

    public ApplicationErrorReport ()

Create an uninitialized instance of `ApplicationErrorReport`.

## Public methods

### describeContents

    public int describeContents ()

Describe the kinds of special objects contained in this Parcelable instance's marshaled representation. For example, if the object will include a file descriptor in the output of `writeToParcel(android.os.Parcel, int)`, the return value of this method must include the `CONTENTS_FILE_DESCRIPTOR` bit.

Returns
`int` | a bitmask indicating the set of special object types marshaled by this Parcelable object instance. Value is either `0` or `CONTENTS_FILE_DESCRIPTOR`

### dump

    public void dump (Printer pw,
                    String prefix)

Dump the report to a Printer.

Parameters
`pw` | `Printer`
`prefix` | `String`

### getErrorReportReceiver

    public static ComponentName getErrorReportReceiver (Context context,
                    String packageName,
                    int appFlags)

Parameters
`context` | `Context`
`packageName` | `String`
`appFlags` | `int`

Returns
`ComponentName` |

### readFromParcel

    public void readFromParcel (Parcel in)

Parameters
`in` | `Parcel`

### writeToParcel

    public void writeToParcel (Parcel dest,
                    int flags)

Flatten this object in to a Parcel.

Parameters
`dest` | `Parcel`: The Parcel in which the object should be written.
`flags` | `int`: Additional flags about how the object should be written. May be 0 or `Parcelable.PARCELABLE_WRITE_RETURN_VALUE`. Value is either `0` or a combination of `Parcelable.PARCELABLE_WRITE_RETURN_VALUE`, and android.os.Parcelable.PARCELABLE_ELIDE_DUPLICATES

Full name *
Email address *
Company / developer name
One of your Play Store app URLs *
Which best describes your business:*
Apps
Games
Apps & Games
*
*