ActivityManager.GetRunningServices(Int32) ActivityManager.GetRunningServices(Int32) Method

Definition

Warning

This API is now obsolete.

Return a list of the services that are currently running.

[Android.Runtime.Register("getRunningServices", "(I)Ljava/util/List;", "GetGetRunningServices_IHandler")]
[System.Obsolete("deprecated")]
public virtual System.Collections.Generic.IList<Android.App.ActivityManager.RunningServiceInfo> GetRunningServices (int maxNum);
abstract member GetRunningServices : int -> System.Collections.Generic.IList<Android.App.ActivityManager.RunningServiceInfo>
override this.GetRunningServices : int -> System.Collections.Generic.IList<Android.App.ActivityManager.RunningServiceInfo>

Parameters

maxNum
Int32 Int32

The maximum number of entries to return in the list. The actual number returned may be smaller, depending on how many services are running.

Returns

Exceptions

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to