title: Display emoji/emotion icon in Android TextView
body: <p>I have some problem with displaying emoji icon in Android TextView</p>
  
  <p>First, I found a list of emoji icon in unicode at here:
  <a href="http://www.easyapns.com/category/just-for-fun">http://www.easyapns.com/category/just-for-fun</a></p>
  
  <p>Second, I found how to display emoji icon at here:
  <a href="https://github.com/sharakova/EmojiTextView/blob/master/src/jp/sharakova/android/emoji/EmojiTextView.java">https://github.com/sharakova/EmojiTextView/blob/master/src/jp/sharakova/android/emoji/EmojiTextView.java</a></p>
  
  <p>The EmojiTextView.java can convert the predefined character to emoji icon automatically. Therefore, I want to replace all the occurrences of emoji icon in a String to some predefined character, and put the result to EmojiTextView.java
  The problem is my code cannot recognize emoji icon in the String which contains emoji icon.</p>
  
  <p>Here is my code snippet - I am trying to find if the input match any unicode of emoji icon:</p>
  
  <pre><code>// Array list of all emoji icon
  private static final String[] ArrayEUnicodeString ={
      "\uE415",
      "\uE056",
      "\uE057",
      ...
  }
  
  // Nothing matched when it receive emoji icon with unicode "\uE415" from iphone. 'input' is message received from XMPP server
  for (int i=0; i &lt; emojiLength; i++)
  {
  
      if (input.getBytes() == ArrayEUnicodeString[i].getBytes())
          Log.e("test", "ArrayEUnicodeString found");
  }
  // Note: iphone can display the emoji icon if I send "\uE415"
  </code></pre>
  
  <p>I am not good at unicode comparison/convention. Can somebody help me please, thanks!</p>