Java tutorial
//package com.java2s; import android.content.Context; import android.content.Intent; import android.net.Uri; import java.io.File; public class Main { public static boolean install(Context context, File file) { if (file == null || !file.exists() || !file.isFile()) { return false; } Intent intent = new Intent(Intent.ACTION_VIEW); intent.setDataAndType(Uri.fromFile(file), "application/vnd.android.package-archive"); intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); context.startActivity(intent); return true; } }