Cool, save it for later usage 😉
OUTDATED SAMPLE – Updated code is here:
Using Smack XMPP API from Android
Once you get tired of the limitations of android’s built-in IMProvider and the corresponding API – IXmppSession and IXmppService, try the sample below. Inside the source/binary zip (bottom of this article) you will find a smack.jar that works with android. To build the jar yourself, You can download the Smack 3.0.4 sources from here and apply the patch here.
Here is a screen shot of the XMPP Settings Dialog.
- For GTalk, use “gtalk.google.com” as host with port 5222. The service name is “gmail.com”
- Don’t add “@gmail.com” in the user name, just the id will do
Here’s the code for the settings dialog
Here is a screen shot of the main window.
- In the Recipient field, make sure you add the “@gmail.com”, not just the user id
Here’s the code for the main activity
View original post 8 more words