powered by Jive Software

Where can I find a step by step tutorial for Asmack?

Hi All,

I passed 1 week trying to understand this sentence in the README:

"In order to work correctly on Android, you need to register Smack’s

XMPP Providers and Extensions manually and init some static code

blocks before you doing any XMPP activty. Calling

SmackAndroid.init(Context) (in org.jivesoftware.smack) will do this

for you."

I got this README from here: https://github.com/Flowdalic/asmack

Could someone please help with a step by step TUTORIAL that explains how to start with Asmack?

What do the authors mean by “context” how to set the value of it ?

The truth is that if you could give a simple working example I would be really greatful.

Here is my code but I think I’m not getting it:




Perhaps not an answer to your tutorial question, but on the Providers and Extensions have a look at http://community.igniterealtime.org/thread/31118 (post #5) which has some code for a “configure()” method which loads these.

I’m not actually running on Android, but had a related issue in another environment and used this approach successfully.