Android Guides | Samples

Android.App.ActivityManager.RunningAppProcessInfo Class

Information you can retrieve about a running process.

See Also: ActivityManager+RunningAppProcessInfo

Syntax

[Android.Runtime.Register("android/app/ActivityManager$RunningAppProcessInfo", DoNotGenerateAcw=true)]
public class ActivityManager.RunningAppProcessInfo : Object, IParcelable, IDisposable

Remarks

Information you can retrieve about a running process.

[Android Documentation]

Requirements

Namespace: Android.App
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 3

The members of Android.App.ActivityManager.RunningAppProcessInfo are listed below.

See Also: Object

Public Constructors

Protected Constructors

A constructor used when creating managed representations of JNI objects; called by the runtime.

Public Fields

const
ImportanceBackgroundImportance (400). Constant for ActivityManager+RunningAppProcessInfo.Importance: this process process contains background code that is expendable.
const
ImportanceEmptyImportance (500). Constant for ActivityManager+RunningAppProcessInfo.Importance: this process is empty of any actively running code.
const
ImportanceForegroundImportance (100). Constant for ActivityManager+RunningAppProcessInfo.Importance: this process is running the foreground UI.
const
ImportanceGoneImportance (1000).
const
ImportancePerceptibleImportance (130). Constant for ActivityManager+RunningAppProcessInfo.Importance: this process is running something that is considered to be actively perceptible to the user.
const
ImportanceServiceImportance (300). Constant for ActivityManager+RunningAppProcessInfo.Importance: this process is contains services that should remain running.
const
ImportanceVisibleImportance (200). Constant for ActivityManager+RunningAppProcessInfo.Importance: this process is running something that is actively visible to the user, though not in the immediate foreground.
const
ReasonProviderInUseImportanceReason (1). Constant for ActivityManager+RunningAppProcessInfo.Importance: one of the application's content providers is being used by another process.
const
ReasonServiceInUseImportanceReason (2). Constant for ActivityManager+RunningAppProcessInfo.Importance: one of the application's content providers is being used by another process.
const
ReasonUnknownImportanceReason (0). Constant for ActivityManager+RunningAppProcessInfo.Importance: nothing special has been specified for the reason for this level.

Public Properties

[read-only]
static
CreatorIParcelableCreator.
ImportanceImportance. The relative importance level that the system places on this process.
ImportanceReasonCodeImportanceReason. The reason for ActivityManager+RunningAppProcessInfo.Importance, if any.
ImportanceReasonComponentComponentName. For the specified values of ActivityManager+RunningAppProcessInfo.Importance, this is the name of the component that is being used in this process.
ImportanceReasonPidInt32. For the specified values of ActivityManager+RunningAppProcessInfo.Importance, this is the process ID of the other process that is a client of this process.
LastTrimLevelTrimMemory. Last memory trim level reported to the process: corresponds to the values supplied to Application.OnTrimMemory.
LruInt32. An additional ordering within a particular ActivityManager+RunningAppProcessInfo.Importance category, providing finer-grained information about the relative utility of processes within a category.
PidInt32. The pid of this process; 0 if none
PkgListIList<string>. All packages that have been loaded into the process.
ProcessNameString. The name of the process that this object is associated with
UidInt32. The user id of this process.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

DescribeContents() : Int32
Describe the kinds of special objects contained in this Parcelable's marshalled representation.
ReadFromParcel(Parcel)
WriteToParcel(Parcel, ParcelableWriteFlags)
Flatten this object in to a Parcel.