共用方式為


Intent.ActionPackageAdded Field

Definition

Broadcast Action: A new application package has been installed on the device.

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

Field Value

Implements

Attributes

Remarks

Broadcast Action: A new application package has been installed on the device. The data contains the name of the package. Note that the newly installed package does <em>not</em> receive this broadcast.

May include the following extras: <ul> <li> #EXTRA_UID containing the integer uid assigned to the new package. <li> #EXTRA_REPLACING is set to true if this is following an #ACTION_PACKAGE_REMOVED broadcast for the same 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_ADDED.

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