Java tutorial
//package com.java2s; import android.content.Context; import android.content.pm.ApplicationInfo; import android.content.pm.PackageManager; public class Main { public static boolean isAppOk(Context context, String packName) { boolean appIsOk = false; try { ApplicationInfo applicationInfo = context.getPackageManager().getApplicationInfo(packName, PackageManager.GET_UNINSTALLED_PACKAGES); if (applicationInfo != null) { appIsOk = true; } } catch (Exception e) { // TODO: handle exception e.printStackTrace(); } return appIsOk; } }