-2

How can I send and receive Emojis over android application using smack library and OpenFire sever in Chat Application ?

ichthyocentaurs
  • 2,173
  • 21
  • 35
K Guru
  • 1,292
  • 2
  • 17
  • 36

1 Answers1

0

Well you usually donot send actual images in XMPP communications. The emoji is encoded into a unicode value and then it is decoded at the other end.

Check the emoji unicode chart here:-
http://unicode.org/emoji/charts/full-emoji-list.html

Last when I used smack I used the below library to encode and decode emojis. https://github.com/rockerhieu/emojicon.
This library is very flexible and allows you to add your own emojis as well.

ichthyocentaurs
  • 2,173
  • 21
  • 35
  • emoji(Unicode chars) != emoticons(short sequences of ASCII characters) ... – Selvin Oct 24 '16 at 11:11
  • 1
    @Selvin - Emojis center more around ideas rather than the emotions of the person composing the message. The use of emoji's originated in Japan, and the word emoji means "picture character." The range of emoji is broader than emoticons and includes pictures of animals, transportation, business icons, and others. The idea of both being the same, denote an expression through an image. – ichthyocentaurs Oct 24 '16 at 11:13
  • *The emoticon is encoded into a unicode value and then it is decoded at the other end.* ... emoticon fx `:)` or `:-)` is sendend by plain text (two and three chars in this example) ... it may be replaced with image in client ... but it may be not ... emoji are special unicode chars for some time (2010) – Selvin Oct 24 '16 at 11:20
  • what you are saying is correct, but is that the intention of the person asking the question? is it that big a deal to send a plain text ":)". – ichthyocentaurs Oct 24 '16 at 11:23
  • [emoticon](https://en.wikipedia.org/wiki/Emoticon) vs [emoji](https://en.wikipedia.org/wiki/emoji) ... translation of emoticon to emoji makes no sens as client on the other side may not support unicode ... so it would be better to get `:)` instead some unreadable Unicode char – Selvin Oct 24 '16 at 11:27