code: public static boolean checkReceiver(Context context, Class<?> receiver) {
      try {
        ActivityInfo info = context.getPackageManager().getReceiverInfo(
            new ComponentName(context, receiver), 0);
        return null != info;
      } catch (PackageManager.NameNotFoundException e) {
        printErrorLog("receiver " + receiver.getName() + " is missing!");
        return false;
      }
    }
docs: 判断 Mainifest 中是否包含对应到 Receiver
  如有，则返回 true，反之，则返回 false 并输出日志
  
  @param context
  @param receiver
  @return