Here you can find the source of isAppInstalled(Context context)
public static final boolean isAppInstalled(Context context)
//package com.java2s; import android.content.Context; import android.content.pm.PackageManager; import android.content.pm.PackageManager.NameNotFoundException; public class Main { public static final String PACKAGE_NAME = "org.c_base.c_beam"; public static final boolean isAppInstalled(Context context) { PackageManager manager = context.getPackageManager(); try {/*from ww w . ja v a2 s . c o m*/ manager.getPackageInfo(PACKAGE_NAME, 0); return true; } catch (NameNotFoundException e) { return false; } } }