@@ -0,0 +1,1216 @@
+package co.kaush.mystarterapp.myappmodule.utils;%0A%0Aimport android.content.Context;%0Aimport android.content.Intent;%0Aimport android.content.pm.PackageManager;%0Aimport android.content.pm.ResolveInfo;%0A%0Aimport java.util.List;%0A%0Apublic class IntentUtils %7B%0A%0A    /**%0A     * Indicates whether the specified action can be used as an intent. This%0A     * method queries the package manager for installed packages that can%0A     * respond to an intent with the specified action. If no suitable package is%0A     * found, this method returns false.%0A     *%0A     * @param context The application's environment.%0A     * @param action The Intent action to check for availability.%0A     *%0A     * @return True if an Intent with the specified action can be sent and%0A     *         responded to, false otherwise.%0A     */%0A    public static boolean isIntentAvailable(Context context, String action) %7B%0A        final PackageManager packageManager = context.getPackageManager();%0A        final Intent intent = new Intent(action);%0A        List%3CResolveInfo%3E list =%0A                packageManager.queryIntentActivities(intent,%0A                                                     PackageManager.MATCH_DEFAULT_ONLY);%0A        return list.size() %3E 0;%0A    %7D%0A%7D%0A

Add an Intent Utils library