Java tutorial
//package com.java2s; //License from project: Open Source License import android.content.Context; import android.content.Intent; import android.net.Uri; import java.io.File; public class Main { public static boolean installApp(Context context, File apkFile) { try { Intent intent = new Intent(Intent.ACTION_VIEW); intent.setDataAndType(Uri.fromFile(apkFile), "application/vnd.android.package-archive"); context.startActivity(intent); return true; } catch (Exception e) { return false; } } }