Java tutorial
//package com.java2s; import android.content.Intent; import android.net.Uri; public class Main { public static Intent getInstallIntent(Uri uri) { Intent i = new Intent(Intent.ACTION_VIEW); i.setDataAndType(uri, "application/vnd.android.package-archive"); i.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); return i; } }