Java tutorial
//package com.java2s; import android.content.*; public class Main { public static boolean isIntentAvailable(Context context, String s) { boolean flag; if (context.getPackageManager().queryIntentActivities(new Intent(s), 0x10000).size() > 0) flag = true; else flag = false; return flag; } }