title: Adding and checking the emoticon in the message text using smack Api - Android
body: <p>I am working on chat application using smack api in android. How can i send the Emoticons in between or end of the text of message body using smack? And for received messages also how can i detect that text text has Emoticons some where in the text. I have referred this link
  <a href="http://www.igniterealtime.org/builds/smack/docs/latest/documentation/extensions/xhtml.html" rel="nofollow">http://www.igniterealtime.org/builds/smack/docs/latest/documentation/extensions/xhtml.html</a></p>
  
  <p>Is this is only way or correct way of sending and receiving the
  Emoticons?</p>
  
  <p>ISSUE 2: How can i detect that i had lost my connection
  XMPP server. Can any one had the Idea Please share your ideas</p>