public static boolean containsEmoji(String string) {
    if (string == null) return false;

    return EmojiParser.getNextUnicodeCandidate(string.toCharArray(), 0) != null;
  }
Tests if a given String contains an emoji.

@param string the string to test

@return true if the string contains an emoji's unicode, false otherwise
src/main/java/com/vdurmont/emoji/EmojiManager.java