Android Guides | Samples

Android.OS.Process Class

Tools for managing OS processes.

See Also: Process

Syntax

[Android.Runtime.Register("android/os/Process", DoNotGenerateAcw=true)]
public class Process : Object

Remarks

Tools for managing OS processes.

[Android Documentation]

Requirements

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

The members of Android.OS.Process 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
BluetoothGidInt32 (2000).
const
FirstApplicationUidInt32 (10000). Defines the start of a range of UIDs (and GIDs), going from this number to Process.LastApplicationUid that are reserved for assigning to applications.
const
LastApplicationUidInt32 (99999). Last of application-specific UIDs starting at Process.FirstApplicationUid.
const
PhoneUidInt32 (1001). Defines the UID/GID under which the telephony code runs.
const
SystemUidInt32 (1000). Defines the UID/GID under which system code runs.

Public Properties

[read-only]
static
ElapsedCpuTimeInt64. Returns elapsed milliseconds of the time this process has run.

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

static
GetGidForName(String) : Int32
Returns the GID assigned to a particular user name, or -1 if there is none.
static
GetThreadPriority(Int32) : ThreadPriority
Return the current priority of a thread, based on Linux priorities.
static
GetUidForName(String) : Int32
Returns the UID assigned to a particular user name, or -1 if there is none.
static
KillProcess(Int32)
Kill the process with the given PID.
static
MyPid() : Int32
Returns the identifier of this process, which can be used with Process.KillProcess(Int32) and Process.SendSignal(Int32,Signal).
static
MyTid() : Int32
Returns the identifier of the calling thread, which be used with Process.SetThreadPriority(Int32,ThreadPriority).
static
MyUid() : Int32
Returns the identifier of this process's uid.
static
MyUserHandle() : UserHandle
Returns this process's user handle.
static
SendSignal(Int32, Signal)
Send a signal to the given process.
static
SetThreadPriority(ThreadPriority)
Set the priority of the calling thread, based on Linux priorities.
static
SetThreadPriority(Int32, ThreadPriority)
Set the priority of a thread, based on Linux priorities.
static
SupportsProcesses() : Boolean
Determine whether the current environment supports multiple processes.