Advertisement
Guest User

Untitled

a guest
Jul 21st, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.29 KB | None | 0 0
  1.     /**
  2.      * @hide
  3.      *
  4.      * Install a package. Since this may take a little while, the result will
  5.      * be posted back to the given observer.  An installation will fail if the calling context
  6.      * lacks the {@link android.Manifest.permission#INSTALL_PACKAGES} permission, if the
  7.      * package named in the package file's manifest is already installed, or if there's no space
  8.      * available on the device.
  9.      *
  10.      * @param packageURI The location of the package file to install.  This can be a 'file:' or a
  11.      * 'content:' URI.
  12.      * @param observer An observer callback to get notified when the package installation is
  13.      * complete. {@link IPackageInstallObserver#packageInstalled(String, int)} will be
  14.      * called when that happens.  observer may be null to indicate that no callback is desired.
  15.      * @param flags - possible values: {@link #INSTALL_FORWARD_LOCK},
  16.      * {@link #INSTALL_REPLACE_EXISTING}, {@link #INSTALL_ALLOW_TEST}.
  17.      * @param installerPackageName Optional package name of the application that is performing the
  18.      * installation. This identifies which market the package came from.
  19.      */
  20.     public abstract void installPackage(
  21.             Uri packageURI, IPackageInstallObserver observer, int flags,
  22.             String installerPackageName);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement