【发布时间】:2014-10-24 06:29:44
【问题描述】:
正在发送的XMPP 消息在消息标签中添加了一些自定义属性,例如:
<message to = " asdf" from = "asdf" type = "chat" id="adsf" direction = "asdf" speed = "asdf">
<body>Speed</body>
</message>
正在发送的消息一切正常。但是在接收端,我不知道如何读取这些额外的属性,即 direction and speed 添加到消息标签中。我尝试制作自定义 PacketListener 但为此我需要更改整个 smack 库 bcz 每个类都连接到其他类。
【问题讨论】:
标签: android xml-parsing xmpp smack