Android Package Manage installPackage(Context context, File packageFile)

Here you can find the source of installPackage(Context context, File packageFile)

Description

install Package

Declaration

public static void installPackage(Context context, File packageFile) 

Method Source Code

//package com.java2s;
import android.content.Context;

import android.os.RecoverySystem;
import java.io.File;

import java.io.IOException;

public class Main {
    public static void installPackage(Context context, File packageFile) {
        try {//from w  w  w  .  ja v a2s. com
            RecoverySystem.installPackage(context, packageFile);
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}

Related

  1. getApplicationMarketPage( @Nonnull String packageName)
  2. isPackageInstalled(final String packageName, final PackageManager pm)
  3. isSpeechRecognitionActivityPresented( Activity callerActivity)
  4. uninstall(Context context, String packageName)
  5. uninstallApp(Context context, String packageName)