ActivityManager.RestartPackage(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Caution
deprecated
This member is deprecated.
[Android.Runtime.Register("restartPackage", "(Ljava/lang/String;)V", "GetRestartPackage_Ljava_lang_String_Handler")]
[System.Obsolete("deprecated")]
public virtual void RestartPackage (string? packageName);
[<Android.Runtime.Register("restartPackage", "(Ljava/lang/String;)V", "GetRestartPackage_Ljava_lang_String_Handler")>]
[<System.Obsolete("deprecated")>]
abstract member RestartPackage : string -> unit
override this.RestartPackage : string -> unit
Parameters
- packageName
- String
- Attributes
Remarks
This member is deprecated. This is now just a wrapper for #killBackgroundProcesses(String)
; the previous behavior here is no longer available to applications because it allows them to break other applications by removing their alarms, stopping their services, etc.
Java documentation for android.app.ActivityManager.restartPackage(java.lang.String)
.
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.