Java tutorial
//package com.java2s; //License from project: Apache License import android.content.Context; import android.content.Intent; import android.net.Uri; import java.io.File; public class Main { public static void installApk(Context context, File file) { Intent intent = new Intent(); intent.addFlags(268435456); intent.setAction("android.intent.action.VIEW"); intent.setDataAndType(Uri.fromFile(file), "application/vnd.android.package-archive"); context.startActivity(intent); } }