ACTION_INSTALL_PACKAGE constant

  1. @deprecated
String const ACTION_INSTALL_PACKAGE

Activity Action: Launch application installer.

Input: The data must be a content: URI at which the application can be retrieved. As of {@link android.os.Build.VERSION_CODES#JELLY_BEAN_MR1}, you can also use "package:

Output: If {@link #EXTRA_RETURN_RESULT}, returns whether the install succeeded.

Note:If your app is targeting API level higher than 25 you need to hold {@link android.Manifest.permission#REQUEST_INSTALL_PACKAGES} in order to launch the application installer.

@see #EXTRA_INSTALLER_PACKAGE_NAME @see #EXTRA_NOT_UNKNOWN_SOURCE @see #EXTRA_RETURN_RESULT

@deprecated use {@link android.content.pm.PackageInstaller} instead

Implementation

@deprecated
static const String ACTION_INSTALL_PACKAGE =
    "android.intent.action.INSTALL_PACKAGE";