共用方式為


Intent.ActionPackageRestarted Field

Definition

Broadcast Action: The user has restarted a package, and all of its processes have been killed.

[Android.Runtime.Register("ACTION_PACKAGE_RESTARTED")]
public const string ActionPackageRestarted;
[<Android.Runtime.Register("ACTION_PACKAGE_RESTARTED")>]
val mutable ActionPackageRestarted : string

Field Value

Implements

Attributes

Remarks

Broadcast Action: The user has restarted a package, and all of its processes have been killed. All runtime state associated with it (processes, alarms, notifications, etc) should be removed. Note that the restarted package does <em>not</em> receive this broadcast. The data contains the name of the package. <ul> <li> #EXTRA_UID containing the integer uid assigned to the package. </ul>

<p class="note">This is a protected intent that can only be sent by the system.

Java documentation for android.content.Intent.ACTION_PACKAGE_RESTARTED.

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