Process.KillProcess(Int32) Method

Definition

Kill the process with the given PID.

[Android.Runtime.Register("killProcess", "(I)V", "")]
public static void KillProcess (int pid);
[<Android.Runtime.Register("killProcess", "(I)V", "")>]
static member KillProcess : int -> unit

Parameters

pid
Int32
Attributes

Remarks

Kill the process with the given PID. Note that, though this API allows us to request to kill any process based on its PID, the kernel will still impose standard restrictions on which PIDs you are actually able to kill. Typically this means only the process running the caller's packages/application and any additional processes created by that app; packages sharing a common UID will also be able to kill each other's processes.

Java documentation for android.os.Process.killProcess(int).

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