Java tutorial
//package com.java2s; //License from project: Apache License import android.content.Context; import android.content.pm.PackageManager; public class Main { public static boolean isAppInstalled(Context context, String packageName) { PackageManager pm = context.getPackageManager(); boolean app_installed; try { pm.getPackageInfo(packageName, PackageManager.GET_ACTIVITIES); app_installed = true; } catch (PackageManager.NameNotFoundException e) { app_installed = false; } return app_installed; } }