Java tutorial
//package com.java2s; //License from project: Open Source License import android.content.Context; import android.content.Intent; import android.content.pm.ResolveInfo; import java.util.List; public class Main { public static boolean isIntentAvailable(Context context, Intent intent) { List<ResolveInfo> activities = context.getPackageManager().queryIntentActivities(intent, 0); return activities != null && activities.size() == 1; } }