aSmack Android文档和调试

ase*_*ims 5 android xmpp asmack

ASmack库是指http://www.igniterealtime.org/builds/smack/docs/latest/documentation/index.html上的文档 ,我认为它已过时,但未提供准确的信息.示例如下: - 调试:

        XMPPConnection.DEBUG_ENABLED = true;
Run Code Online (Sandbox Code Playgroud)

- 即使在最新的自述文件中,它也无法正常工作:

XMPPConnection.DEBUG
Run Code Online (Sandbox Code Playgroud)

这不起作用. - 此外,ChatManager:1st(在文档中)不起作用,在谷歌搜索后第二...

 ChatManager chatmanager = connection.getChatManager();

 ChatManager chatmanager = ChatManager.getInstanceFor(connection);
Run Code Online (Sandbox Code Playgroud)

那么我如何使用文档中的基本示例来启用详细调试,就像我在log cat中获得的那样:

05-26 11:15:11.237    4633-4633/com.ex.myapplication4.app W/System.err? org.jivesoftware.smack.SmackException$ConnectionException
05-26 11:15:11.237    4633-4633/com.ex.myapplication4.app W/System.err? at org.jivesoftware.smack.XMPPTCPConnection.connectUsingConfiguration(XMPPTCPConnection.java:455)
05-26 11:15:11.237    4633-4633/com.ex.myapplication4.app W/System.err? at org.jivesoftware.smack.XMPPTCPConnection.connect(XMPPTCPConnection.java:865)
Run Code Online (Sandbox Code Playgroud)

在哪里可以找到可靠的文档或教程,使用最新版本(a)Smack 4.0.0-rc2?

ase*_*ims 0

我已经使用 asmack-android-7-beem-jingle.jar 通过 Android 发送 XMPP 消息,效果非常好。我为我使用的代码创建了一个要点: https: //gist.github.com/aselims/92da8b2ad3692fdec699
我希望这有帮助!