Android.App.ActivityManager.KillBackgroundProcesses Method
Have the system immediately kill all background processes associated with the given package.

Syntax

[Android.Runtime.Register("killBackgroundProcesses", "(Ljava/lang/String;)V", "GetKillBackgroundProcesses_Ljava_lang_String_Handler")]
public virtual void KillBackgroundProcesses (string packageName)

Parameters

packageName
The name of the package whose processes are to be killed.

Remarks

Have the system immediately kill all background processes associated with the given package. This is the same as the kernel killing those processes to reclaim memory; the system will take care of restarting these processes in the future as needed.

You must hold the permission NoType:android/Manifest$permission;Href=../../../reference/android/Manifest.permission.html#KILL_BACKGROUND_PROCESSES to be able to call this method.

[Android Documentation]

Requirements

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