The asmack could not load providers from smackx.jar automatically, if any project needs listen MessageEvent (composing, delivered, displayed, offline etc.), these lines must be added manually.
After established a connection:
connection.connect();
ProviderManager pm = ProviderManager.getInstance();
// Add extension provider
pm.addExtensionProvider("x", "jabber:x:event",new MessageEventProvider());