Added in [API level 3](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels) Summary: [Constants](https://developer.android.com/reference/android/app/ActivityManager.RunningAppProcessInfo#constants) \| [Inherited Constants](https://developer.android.com/reference/android/app/ActivityManager.RunningAppProcessInfo#inhconstants) \| [Fields](https://developer.android.com/reference/android/app/ActivityManager.RunningAppProcessInfo#lfields) \| [Ctors](https://developer.android.com/reference/android/app/ActivityManager.RunningAppProcessInfo#pubctors) \| [Methods](https://developer.android.com/reference/android/app/ActivityManager.RunningAppProcessInfo#pubmethods) \| [Inherited Methods](https://developer.android.com/reference/android/app/ActivityManager.RunningAppProcessInfo#inhmethods)

# ActivityManager.RunningAppProcessInfo

*** ** * ** ***

` public static class ActivityManager.RunningAppProcessInfo `   
` extends https://developer.android.com/reference/java/lang/Object ` ` implements https://developer.android.com/reference/android/os/Parcelable `

|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) ||
| ↳ | android.app.ActivityManager.RunningAppProcessInfo |

<br />

*** ** * ** ***

Information you can retrieve about a running process.

## Summary

| ### Constants ||
|---|---|
| `int` | `https://developer.android.com/reference/android/app/ActivityManager.RunningAppProcessInfo#IMPORTANCE_BACKGROUND` *This constant was deprecated in API level 26. Renamed to `https://developer.android.com/reference/android/app/ActivityManager.RunningAppProcessInfo#IMPORTANCE_CACHED`.* |
| `int` | `https://developer.android.com/reference/android/app/ActivityManager.RunningAppProcessInfo#IMPORTANCE_CACHED` Constant for `https://developer.android.com/reference/android/app/ActivityManager.RunningAppProcessInfo#importance`: This process contains cached code that is expendable, not actively running any app components we care about. |
| `int` | `https://developer.android.com/reference/android/app/ActivityManager.RunningAppProcessInfo#IMPORTANCE_CANT_SAVE_STATE` Constant for `https://developer.android.com/reference/android/app/ActivityManager.RunningAppProcessInfo#importance`: This process is running an application that can not save its state, and thus can't be killed while in the background. |
| `int` | `https://developer.android.com/reference/android/app/ActivityManager.RunningAppProcessInfo#IMPORTANCE_EMPTY` *This constant was deprecated in API level 26. This value is no longer reported, use `https://developer.android.com/reference/android/app/ActivityManager.RunningAppProcessInfo#IMPORTANCE_CACHED` instead.* |
| `int` | `https://developer.android.com/reference/android/app/ActivityManager.RunningAppProcessInfo#IMPORTANCE_FOREGROUND` Constant for `https://developer.android.com/reference/android/app/ActivityManager.RunningAppProcessInfo#importance`: This process is running the foreground UI; that is, it is the thing currently at the top of the screen that the user is interacting with. |
| `int` | `https://developer.android.com/reference/android/app/ActivityManager.RunningAppProcessInfo#IMPORTANCE_FOREGROUND_SERVICE` Constant for `https://developer.android.com/reference/android/app/ActivityManager.RunningAppProcessInfo#importance`: This process is running a foreground service, for example to perform music playback even while the user is not immediately in the app. |
| `int` | `https://developer.android.com/reference/android/app/ActivityManager.RunningAppProcessInfo#IMPORTANCE_GONE` Constant for `https://developer.android.com/reference/android/app/ActivityManager.RunningAppProcessInfo#importance`: This process does not exist. |
| `int` | `https://developer.android.com/reference/android/app/ActivityManager.RunningAppProcessInfo#IMPORTANCE_PERCEPTIBLE` Constant for `https://developer.android.com/reference/android/app/ActivityManager.RunningAppProcessInfo#importance`: This process is not something the user is directly aware of, but is otherwise perceptible to them to some degree. |
| `int` | `https://developer.android.com/reference/android/app/ActivityManager.RunningAppProcessInfo#IMPORTANCE_PERCEPTIBLE_PRE_26` Constant for `https://developer.android.com/reference/android/app/ActivityManager.RunningAppProcessInfo#importance`: `https://developer.android.com/reference/android/app/ActivityManager.RunningAppProcessInfo#IMPORTANCE_PERCEPTIBLE` had this wrong value before `https://developer.android.com/reference/android/os/Build.VERSION_CODES#O`. |
| `int` | `https://developer.android.com/reference/android/app/ActivityManager.RunningAppProcessInfo#IMPORTANCE_SERVICE` Constant for `https://developer.android.com/reference/android/app/ActivityManager.RunningAppProcessInfo#importance`: This process contains services that should remain running. |
| `int` | `https://developer.android.com/reference/android/app/ActivityManager.RunningAppProcessInfo#IMPORTANCE_TOP_SLEEPING` Constant for `https://developer.android.com/reference/android/app/ActivityManager.RunningAppProcessInfo#importance`: This process is running the foreground UI, but the device is asleep so it is not visible to the user. |
| `int` | `https://developer.android.com/reference/android/app/ActivityManager.RunningAppProcessInfo#IMPORTANCE_TOP_SLEEPING_PRE_28` *This constant was deprecated in API level 28. Pre-`https://developer.android.com/reference/android/os/Build.VERSION_CODES#P` version of `https://developer.android.com/reference/android/app/ActivityManager.RunningAppProcessInfo#IMPORTANCE_TOP_SLEEPING`. As of Android `https://developer.android.com/reference/android/os/Build.VERSION_CODES#P`, this is considered much less important since we want to reduce what apps can do when the screen is off.* |
| `int` | `https://developer.android.com/reference/android/app/ActivityManager.RunningAppProcessInfo#IMPORTANCE_VISIBLE` Constant for `https://developer.android.com/reference/android/app/ActivityManager.RunningAppProcessInfo#importance`: This process is running something that is actively visible to the user, though not in the immediate foreground. |
| `int` | `https://developer.android.com/reference/android/app/ActivityManager.RunningAppProcessInfo#REASON_PROVIDER_IN_USE` Constant for `https://developer.android.com/reference/android/app/ActivityManager.RunningAppProcessInfo#importanceReasonCode`: one of the application's content providers is being used by another process. |
| `int` | `https://developer.android.com/reference/android/app/ActivityManager.RunningAppProcessInfo#REASON_SERVICE_IN_USE` Constant for `https://developer.android.com/reference/android/app/ActivityManager.RunningAppProcessInfo#importanceReasonCode`: one of the application's content providers is being used by another process. |
| `int` | `https://developer.android.com/reference/android/app/ActivityManager.RunningAppProcessInfo#REASON_UNKNOWN` Constant for `https://developer.android.com/reference/android/app/ActivityManager.RunningAppProcessInfo#importanceReasonCode`: nothing special has been specified for the reason for this level. |

### Inherited constants

From interface `https://developer.android.com/reference/android/os/Parcelable` `int` `https://developer.android.com/reference/android/os/Parcelable#CONTENTS_FILE_DESCRIPTOR`

Descriptor bit used with `https://developer.android.com/reference/android/os/Parcelable#describeContents()`: indicates that the Parcelable object's flattened representation includes a file descriptor.
`int` `https://developer.android.com/reference/android/os/Parcelable#PARCELABLE_WRITE_RETURN_VALUE`

Flag for use with `https://developer.android.com/reference/android/os/Parcelable#writeToParcel(android.os.Parcel,%20int)`: 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 https://developer.android.com/reference/android/os/Parcelable.Creator<https://developer.android.com/reference/android/app/ActivityManager.RunningAppProcessInfo>` | `https://developer.android.com/reference/android/app/ActivityManager.RunningAppProcessInfo#CREATOR` <br /> |
| ` public int` | `https://developer.android.com/reference/android/app/ActivityManager.RunningAppProcessInfo#importance` The relative importance level that the system places on this process. |
| ` public int` | `https://developer.android.com/reference/android/app/ActivityManager.RunningAppProcessInfo#importanceReasonCode` The reason for `https://developer.android.com/reference/android/app/ActivityManager.RunningAppProcessInfo#importance`, if any. |
| ` public https://developer.android.com/reference/android/content/ComponentName` | `https://developer.android.com/reference/android/app/ActivityManager.RunningAppProcessInfo#importanceReasonComponent` For the specified values of `https://developer.android.com/reference/android/app/ActivityManager.RunningAppProcessInfo#importanceReasonCode`, this is the name of the component that is being used in this process. |
| ` public int` | `https://developer.android.com/reference/android/app/ActivityManager.RunningAppProcessInfo#importanceReasonPid` For the specified values of `https://developer.android.com/reference/android/app/ActivityManager.RunningAppProcessInfo#importanceReasonCode`, this is the process ID of the other process that is a client of this process. |
| ` public int` | `https://developer.android.com/reference/android/app/ActivityManager.RunningAppProcessInfo#lastTrimLevel` Last memory trim level reported to the process: corresponds to the values supplied to `https://developer.android.com/reference/android/content/ComponentCallbacks2#onTrimMemory(int)`. |
| ` public int` | `https://developer.android.com/reference/android/app/ActivityManager.RunningAppProcessInfo#lru` An additional ordering within a particular `https://developer.android.com/reference/android/app/ActivityManager.RunningAppProcessInfo#importance` category, providing finer-grained information about the relative utility of processes within a category. |
| ` public int` | `https://developer.android.com/reference/android/app/ActivityManager.RunningAppProcessInfo#pid` The pid of this process; 0 if none |
| ` public https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/app/ActivityManager.RunningAppProcessInfo#pkgList` All packages that have been loaded into the process. |
| ` public https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/app/ActivityManager.RunningAppProcessInfo#processName` The name of the process that this object is associated with |
| ` public int` | `https://developer.android.com/reference/android/app/ActivityManager.RunningAppProcessInfo#uid` The user id of this process. |

| ### Public constructors ||
|---|---|
| ` https://developer.android.com/reference/android/app/ActivityManager.RunningAppProcessInfo#RunningAppProcessInfo()() ` |
| ` https://developer.android.com/reference/android/app/ActivityManager.RunningAppProcessInfo#RunningAppProcessInfo(java.lang.String,%20int,%20java.lang.String[])(https://developer.android.com/reference/java/lang/String pProcessName, int pPid, https://developer.android.com/reference/java/lang/String pArr) ` |

| ### Public methods ||
|---|---|
| ` int` | ` https://developer.android.com/reference/android/app/ActivityManager.RunningAppProcessInfo#describeContents()() ` Describe the kinds of special objects contained in this Parcelable instance's marshaled representation. |
| ` void` | ` https://developer.android.com/reference/android/app/ActivityManager.RunningAppProcessInfo#readFromParcel(android.os.Parcel)(https://developer.android.com/reference/android/os/Parcel source) ` |
| ` void` | ` https://developer.android.com/reference/android/app/ActivityManager.RunningAppProcessInfo#writeToParcel(android.os.Parcel,%20int)(https://developer.android.com/reference/android/os/Parcel dest, int flags) ` Flatten this object in to a Parcel. |

### Inherited methods

From class ` https://developer.android.com/reference/java/lang/Object ` ` https://developer.android.com/reference/java/lang/Object` ` https://developer.android.com/reference/java/lang/Object#clone()() `

Creates and returns a copy of this object.
` boolean` ` https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object)(https://developer.android.com/reference/java/lang/Object obj) `

Indicates whether some other object is "equal to" this one.
` void` ` https://developer.android.com/reference/java/lang/Object#finalize()() `

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.
` final https://developer.android.com/reference/java/lang/Class<?>` ` https://developer.android.com/reference/java/lang/Object#getClass()() `

Returns the runtime class of this `Object`.
` int` ` https://developer.android.com/reference/java/lang/Object#hashCode()() `

Returns a hash code value for the object.
` final void` ` https://developer.android.com/reference/java/lang/Object#notify()() `

Wakes up a single thread that is waiting on this object's monitor.
` final void` ` https://developer.android.com/reference/java/lang/Object#notifyAll()() `

Wakes up all threads that are waiting on this object's monitor.
` https://developer.android.com/reference/java/lang/String` ` https://developer.android.com/reference/java/lang/Object#toString()() `

Returns a string representation of the object.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait(long,%20int)(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` ` https://developer.android.com/reference/java/lang/Object#wait(long)(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` ` https://developer.android.com/reference/java/lang/Object#wait()() `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*.
From interface ` https://developer.android.com/reference/android/os/Parcelable ` ` abstract int` ` https://developer.android.com/reference/android/os/Parcelable#describeContents()() `

Describe the kinds of special objects contained in this Parcelable instance's marshaled representation.
` abstract void` ` https://developer.android.com/reference/android/os/Parcelable#writeToParcel(android.os.Parcel,%20int)(https://developer.android.com/reference/android/os/Parcel dest, int flags) `

Flatten this object in to a Parcel.

## Constants

### IMPORTANCE_BACKGROUND

Added in [API level 3](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)   
Deprecated in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int IMPORTANCE_BACKGROUND
```

<br />

**This constant was deprecated in API level 26.**   

Renamed to `https://developer.android.com/reference/android/app/ActivityManager.RunningAppProcessInfo#IMPORTANCE_CACHED`.

<br />

<br />

Constant Value: 400 (0x00000190)

### IMPORTANCE_CACHED

Added in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int IMPORTANCE_CACHED
```

Constant for `https://developer.android.com/reference/android/app/ActivityManager.RunningAppProcessInfo#importance`: This process contains cached code that is expendable, not actively running any app components we care about.

<br />

Constant Value: 400 (0x00000190)

### IMPORTANCE_CANT_SAVE_STATE

Added in [API level 28](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int IMPORTANCE_CANT_SAVE_STATE
```

Constant for `https://developer.android.com/reference/android/app/ActivityManager.RunningAppProcessInfo#importance`: This process is running an application that can not save its state, and thus can't be killed while in the background. This will be used with apps that have `https://developer.android.com/reference/android/R.attr#cantSaveState` set on their application tag.

<br />

Constant Value: 350 (0x0000015e)

### IMPORTANCE_EMPTY

Added in [API level 3](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)   
Deprecated in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int IMPORTANCE_EMPTY
```

<br />

**This constant was deprecated in API level 26.**   

This value is no longer reported, use `https://developer.android.com/reference/android/app/ActivityManager.RunningAppProcessInfo#IMPORTANCE_CACHED` instead.

Constant for `https://developer.android.com/reference/android/app/ActivityManager.RunningAppProcessInfo#importance`: This process is empty of any actively running code.

<br />

Constant Value: 500 (0x000001f4)

### IMPORTANCE_FOREGROUND

Added in [API level 3](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int IMPORTANCE_FOREGROUND
```

Constant for `https://developer.android.com/reference/android/app/ActivityManager.RunningAppProcessInfo#importance`: This process is running the foreground UI; that is, it is the thing currently at the top of the screen that the user is interacting with.

<br />

Constant Value: 100 (0x00000064)

### IMPORTANCE_FOREGROUND_SERVICE

Added in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int IMPORTANCE_FOREGROUND_SERVICE
```

Constant for `https://developer.android.com/reference/android/app/ActivityManager.RunningAppProcessInfo#importance`: This process is running a foreground service, for example to perform music playback even while the user is not immediately in the app. This generally indicates that the process is doing something the user actively cares about.

<br />

Constant Value: 125 (0x0000007d)

### IMPORTANCE_GONE

Added in [API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int IMPORTANCE_GONE
```

Constant for `https://developer.android.com/reference/android/app/ActivityManager.RunningAppProcessInfo#importance`: This process does not exist.

<br />

Constant Value: 1000 (0x000003e8)

### IMPORTANCE_PERCEPTIBLE

Added in [API level 9](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int IMPORTANCE_PERCEPTIBLE
```

Constant for `https://developer.android.com/reference/android/app/ActivityManager.RunningAppProcessInfo#importance`: This process is not something the user is directly aware of, but is otherwise perceptible to them to some degree.

<br />

Constant Value: 230 (0x000000e6)

### IMPORTANCE_PERCEPTIBLE_PRE_26

Added in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int IMPORTANCE_PERCEPTIBLE_PRE_26
```

Constant for `https://developer.android.com/reference/android/app/ActivityManager.RunningAppProcessInfo#importance`: `https://developer.android.com/reference/android/app/ActivityManager.RunningAppProcessInfo#IMPORTANCE_PERCEPTIBLE` had this wrong value before `https://developer.android.com/reference/android/os/Build.VERSION_CODES#O`. Since the `https://developer.android.com/reference/android/os/Build.VERSION_CODES#O` SDK, the value of `https://developer.android.com/reference/android/app/ActivityManager.RunningAppProcessInfo#IMPORTANCE_PERCEPTIBLE` has been fixed.

The system will return this value instead of `https://developer.android.com/reference/android/app/ActivityManager.RunningAppProcessInfo#IMPORTANCE_PERCEPTIBLE` on Android versions below `https://developer.android.com/reference/android/os/Build.VERSION_CODES#O`.

On Android version `https://developer.android.com/reference/android/os/Build.VERSION_CODES#O` and later, this value will still be returned for apps with the target API level below `https://developer.android.com/reference/android/os/Build.VERSION_CODES#O`. For apps targeting version `https://developer.android.com/reference/android/os/Build.VERSION_CODES#O` and later, the correct value `https://developer.android.com/reference/android/app/ActivityManager.RunningAppProcessInfo#IMPORTANCE_PERCEPTIBLE` will be returned.

<br />

Constant Value: 130 (0x00000082)

### IMPORTANCE_SERVICE

Added in [API level 3](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int IMPORTANCE_SERVICE
```

Constant for `https://developer.android.com/reference/android/app/ActivityManager.RunningAppProcessInfo#importance`: This process contains services that should remain running. These are background services apps have started, not something the user is aware of, so they may be killed by the system relatively freely (though it is generally desired that they stay running as long as they want to).

<br />

Constant Value: 300 (0x0000012c)

### IMPORTANCE_TOP_SLEEPING

Added in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int IMPORTANCE_TOP_SLEEPING
```

Constant for `https://developer.android.com/reference/android/app/ActivityManager.RunningAppProcessInfo#importance`: This process is running the foreground UI, but the device is asleep so it is not visible to the user. Though the system will try hard to keep its process from being killed, in all other ways we consider it a kind of cached process, with the limitations that go along with that state: network access, running background services, etc.

<br />

Constant Value: 325 (0x00000145)

### IMPORTANCE_TOP_SLEEPING_PRE_28

Added in [API level 28](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)   
Deprecated in [API level 28](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int IMPORTANCE_TOP_SLEEPING_PRE_28
```

<br />

**This constant was deprecated in API level 28.**   

Pre-`https://developer.android.com/reference/android/os/Build.VERSION_CODES#P` version of `https://developer.android.com/reference/android/app/ActivityManager.RunningAppProcessInfo#IMPORTANCE_TOP_SLEEPING`. As of Android `https://developer.android.com/reference/android/os/Build.VERSION_CODES#P`, this is considered much less important since we want to reduce what apps can do when the screen is off.

<br />

<br />

Constant Value: 150 (0x00000096)

### IMPORTANCE_VISIBLE

Added in [API level 3](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int IMPORTANCE_VISIBLE
```

Constant for `https://developer.android.com/reference/android/app/ActivityManager.RunningAppProcessInfo#importance`: This process is running something that is actively visible to the user, though not in the immediate foreground. This may be running a window that is behind the current foreground (so paused and with its state saved, not interacting with the user, but visible to them to some degree); it may also be running other services under the system's control that it considers important.

<br />

Constant Value: 200 (0x000000c8)

### REASON_PROVIDER_IN_USE

Added in [API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int REASON_PROVIDER_IN_USE
```

Constant for `https://developer.android.com/reference/android/app/ActivityManager.RunningAppProcessInfo#importanceReasonCode`: one of the application's content providers is being used by another process. The pid of the client process is in `https://developer.android.com/reference/android/app/ActivityManager.RunningAppProcessInfo#importanceReasonPid` and the target provider in this process is in `https://developer.android.com/reference/android/app/ActivityManager.RunningAppProcessInfo#importanceReasonComponent`.

<br />

Constant Value: 1 (0x00000001)

### REASON_SERVICE_IN_USE

Added in [API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int REASON_SERVICE_IN_USE
```

Constant for `https://developer.android.com/reference/android/app/ActivityManager.RunningAppProcessInfo#importanceReasonCode`: one of the application's content providers is being used by another process. The pid of the client process is in `https://developer.android.com/reference/android/app/ActivityManager.RunningAppProcessInfo#importanceReasonPid` and the target provider in this process is in `https://developer.android.com/reference/android/app/ActivityManager.RunningAppProcessInfo#importanceReasonComponent`.

<br />

Constant Value: 2 (0x00000002)

### REASON_UNKNOWN

Added in [API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int REASON_UNKNOWN
```

Constant for `https://developer.android.com/reference/android/app/ActivityManager.RunningAppProcessInfo#importanceReasonCode`: nothing special has been specified for the reason for this level.

<br />

Constant Value: 0 (0x00000000)

## Fields

### CREATOR

Added in [API level 3](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final Creator<ActivityManager.RunningAppProcessInfo> CREATOR
```

<br />

<br />

### importance

Added in [API level 3](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public int importance
```

The relative importance level that the system places on this process. These constants are numbered so that "more important" values are always smaller than "less important" values.   

Value is one of the following:

- `https://developer.android.com/reference/android/app/ActivityManager.RunningAppProcessInfo#IMPORTANCE_FOREGROUND`
- `https://developer.android.com/reference/android/app/ActivityManager.RunningAppProcessInfo#IMPORTANCE_FOREGROUND_SERVICE`
- `https://developer.android.com/reference/android/app/ActivityManager.RunningAppProcessInfo#IMPORTANCE_TOP_SLEEPING`
- `https://developer.android.com/reference/android/app/ActivityManager.RunningAppProcessInfo#IMPORTANCE_VISIBLE`
- `https://developer.android.com/reference/android/app/ActivityManager.RunningAppProcessInfo#IMPORTANCE_PERCEPTIBLE`
- `https://developer.android.com/reference/android/app/ActivityManager.RunningAppProcessInfo#IMPORTANCE_CANT_SAVE_STATE`
- `https://developer.android.com/reference/android/app/ActivityManager.RunningAppProcessInfo#IMPORTANCE_SERVICE`
- `https://developer.android.com/reference/android/app/ActivityManager.RunningAppProcessInfo#IMPORTANCE_CACHED`
- `https://developer.android.com/reference/android/app/ActivityManager.RunningAppProcessInfo#IMPORTANCE_GONE`

### importanceReasonCode

Added in [API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public int importanceReasonCode
```

The reason for `https://developer.android.com/reference/android/app/ActivityManager.RunningAppProcessInfo#importance`, if any.

<br />

### importanceReasonComponent

Added in [API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public ComponentName importanceReasonComponent
```

For the specified values of `https://developer.android.com/reference/android/app/ActivityManager.RunningAppProcessInfo#importanceReasonCode`, this is the name of the component that is being used in this process.

<br />

### importanceReasonPid

Added in [API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public int importanceReasonPid
```

For the specified values of `https://developer.android.com/reference/android/app/ActivityManager.RunningAppProcessInfo#importanceReasonCode`, this is the process ID of the other process that is a client of this process. This will be 0 if no other process is using this one.

<br />

### lastTrimLevel

Added in [API level 16](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public int lastTrimLevel
```

Last memory trim level reported to the process: corresponds to the values supplied to `https://developer.android.com/reference/android/content/ComponentCallbacks2#onTrimMemory(int)`.

<br />

### lru

Added in [API level 3](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public int lru
```

An additional ordering within a particular `https://developer.android.com/reference/android/app/ActivityManager.RunningAppProcessInfo#importance` category, providing finer-grained information about the relative utility of processes within a category. This number means nothing except that a smaller values are more recently used (and thus more important). Currently an LRU value is only maintained for the `https://developer.android.com/reference/android/app/ActivityManager.RunningAppProcessInfo#IMPORTANCE_CACHED` category, though others may be maintained in the future.

<br />

### pid

Added in [API level 3](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public int pid
```

The pid of this process; 0 if none

<br />

### pkgList

Added in [API level 3](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public String[] pkgList
```

All packages that have been loaded into the process.

<br />

### processName

Added in [API level 3](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public String processName
```

The name of the process that this object is associated with

<br />

### uid

Added in [API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public int uid
```

The user id of this process.

<br />

## Public constructors

### RunningAppProcessInfo

Added in [API level 3](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public RunningAppProcessInfo ()
```

<br />

<br />

### RunningAppProcessInfo

Added in [API level 3](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public RunningAppProcessInfo (String pProcessName, 
                int pPid, 
                String[] pArr)
```

<br />

<br />

| Parameters ||
|---|---|
| `pProcessName` | `String` <br /> |
| `pPid` | `int` <br /> |
| `pArr` | `String` <br /> |

## Public methods

### describeContents

Added in [API level 3](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
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 `https://developer.android.com/reference/android/os/Parcelable#writeToParcel(android.os.Parcel,%20int)`, the return value of this method must include the `https://developer.android.com/reference/android/os/Parcelable#CONTENTS_FILE_DESCRIPTOR` bit.

<br />

| Returns ||
|---|---|
| `int` | a bitmask indicating the set of special object types marshaled by this Parcelable object instance. Value is either `0` or - `https://developer.android.com/reference/android/os/Parcelable#CONTENTS_FILE_DESCRIPTOR` |

### readFromParcel

Added in [API level 3](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void readFromParcel (Parcel source)
```

<br />

<br />

| Parameters ||
|---|---|
| `source` | `Parcel` <br /> |

### writeToParcel

Added in [API level 3](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void writeToParcel (Parcel dest, 
                int flags)
```

Flatten this object in to a Parcel.

<br />

| Parameters ||
|---|---|
| `dest` | `Parcel`: The Parcel in which the object should be written. This value cannot be `null`. <br /> |
| `flags` | `int`: Additional flags about how the object should be written. May be 0 or `https://developer.android.com/reference/android/os/Parcelable#PARCELABLE_WRITE_RETURN_VALUE`. Value is either `0` or a combination of the following: - `https://developer.android.com/reference/android/os/Parcelable#PARCELABLE_WRITE_RETURN_VALUE` |