Here you can find the source of installPackage(Context context, File packageFile)
public static void installPackage(Context context, File packageFile)
//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(); } } }