Java tutorial
//package com.java2s; import android.content.Context; import android.content.pm.PackageManager; import android.content.pm.PackageManager.NameNotFoundException; public class Main { public static boolean TakeIsInstallApk(String abPath, Context context) { PackageManager pm = context.getPackageManager(); try { pm.getPackageInfo(abPath, PackageManager.GET_ACTIVITIES); return true; } catch (NameNotFoundException e) { return false; } } }