public static boolean hasActivity(Context context, Intent intent) {
        return context.getPackageManager().resolveActivity(intent, MATCH_DEFAULT_ONLY) != null;
    }
public static boolean hasActivity(Context context, Intent intent) {
        return context.getPackageManager().resolveActivity(intent, MATCH_DEFAULT_ONLY) != null;
    }
public static boolean hasActivity ( Context context , Intent intent ) { return context . getPackageManager ( ) . resolveActivity ( intent , MATCH_DEFAULT_ONLY ) != null ; }
True if the Intent can be resolved to an Activity.
True if the Intent can be resolved to an Activity .