Example of chat working with Smack, a XMPP library.