Android Guides | Samples

Android.App.ActivityManager.RunningServiceInfo Class

Information you can retrieve about a particular Service that is currently running in the system.

See Also: ActivityManager+RunningServiceInfo

Syntax

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

Remarks

Information you can retrieve about a particular Service that is currently running in the system.

[Android Documentation]

Requirements

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

The members of Android.App.ActivityManager.RunningServiceInfo 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
FlagForegroundServiceInfoFlags (2). Bit for ActivityManager+RunningServiceInfo.Flags: set if the service has asked to run as a foreground process.
const
FlagPersistentProcessServiceInfoFlags (8). Bit for {@link #flags): set if the service is running in a persistent process.
const
FlagStartedServiceInfoFlags (1). Bit for ActivityManager+RunningServiceInfo.Flags: set if this service has been explicitly started.
const
FlagSystemProcessServiceInfoFlags (4). Bit for {@link #flags): set if the service is running in a core system process.

Public Properties

ActiveSinceInt64. The time when the service was first made active, either by someone starting or binding to it.
ClientCountInt32. Number of clients connected to the service.
ClientLabelInt32. For special services that are bound to by system code, this is a string resource providing a user-visible label for who the client is.
ClientPackageString. For special services that are bound to by system code, this is the package that holds the binding.
CrashCountInt32. Number of times the service's process has crashed while the service is running.
[read-only]
static
CreatorIParcelableCreator.
FlagsServiceInfoFlags. Running flags.
ForegroundBoolean. Set to true if the service has asked to run as a foreground process.
LastActivityTimeInt64. The time when there was last activity in the service (either explicit requests to start it or clients binding to it).
PidInt32. If non-zero, this is the process the service is running in.
ProcessString. The name of the process this service runs in.
RestartingInt64. If non-zero, this service is not currently running, but scheduled to restart at the given time.
ServiceComponentName. The service component.
StartedBoolean. Set to true if this service has been explicitly started.
UidInt32. The UID that owns this service.

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.