getSearchForm returns null when using UserSearch in XMPP with aSmack

Update 04/2014 The original answer below contains now old and outdated information. Since aSmack 0.8 it’s no longer necessary to manually configure the provider manager. Calling SmackAndroid.init(Context) as the aSmack README tells you to do, takes care of all necessary initializations. Original Answer In the end, the problem was global to all asmack. It seems … Read more

How to know Typing Status in XMPP openfire using Smack

To enable ChatStateListener you need to create a custom MessageListener Class public class MessageListenerImpl implements MessageListener,ChatStateListener { @Override public void processMessage(Chat arg0, Message arg1) { System.out.println(“Received message: ” + arg1); } @Override public void stateChanged(Chat arg0, ChatState arg1) { if (ChatState.composing.equals(arg1)) { Log.d(“Chat State”,arg0.getParticipant() + ” is typing..”); } else if (ChatState.gone.equals(arg1)) { Log.d(“Chat State”,arg0.getParticipant() … Read more