code: public static boolean isIntentAvailable(Intent intent) {
          List<ResolveInfo> list = QuickUtils.getContext().getPackageManager().queryIntentActivities(intent,
                  PackageManager.MATCH_DEFAULT_ONLY);
          return !list.isEmpty();
      }
docs: Indicates whether the specified intent can be used. This method queries the package manager for installed
  packages that can respond to the specified intent. If no suitable package is found, this method returns false.
  
  @param intent The Intent to check for availability.
  @return True if the specified Intent can be sent and responded to, false otherwise.