code: public static String intentToString(Intent intent) {
      if (intent == null) {
        return "null";
      }
  
      StringBuilder b = new StringBuilder(128);
      b.append("Intent { ");
      intentToShortString(intent, b);
      b.append(" }");
      return b.toString();
    }
docs: Intent object to string, the string would be in the format of "Intent { ... }".