Java tutorial
//package com.java2s; import android.app.Activity; import android.content.Intent; import android.net.Uri; import java.io.File; public class Main { public static void install(Activity activity, File apk_file) { Intent intent = new Intent(); intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); intent.setAction(android.content.Intent.ACTION_VIEW); intent.setDataAndType(Uri.fromFile(apk_file), "application/vnd.android.package-archive"); activity.startActivity(intent); } }