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