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 void installApk(Context context, File filename) { Intent intent = new Intent(Intent.ACTION_INSTALL_PACKAGE); intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); intent.setData(Uri.fromFile(filename)); context.startActivity(intent); } }