Here you can find the source of isCallable(Context c, Intent intent)
public static boolean isCallable(Context c, Intent intent)
//package com.java2s; //License from project: Open Source License import android.content.Context; import android.content.Intent; import android.content.pm.PackageManager; import android.content.pm.ResolveInfo; import java.util.List; public class Main { public static boolean isCallable(Context c, Intent intent) { List<ResolveInfo> list = c.getPackageManager() .queryIntentActivities(intent, PackageManager.MATCH_DEFAULT_ONLY); return list.size() > 0; }/*from w w w . j a v a 2s. c om*/ }