【问题标题】:How to get id of the message tag in smack?如何在 smack 中获取消息标签的 id?
【发布时间】:2021-07-02 14:25:22
【问题描述】:

我试图获取消息标签中的 id

<message to='one@localhost/117407446208446435445346' from='sun@localhost/92794770693658404575218' id='z2UD4-17' xml:lang='en'><x xmlns="jabber:x:event"><displayed/><id>uQkZG-17</id></x></message>

【问题讨论】:

    标签: android smack


    【解决方案1】:

    您需要parse the XML。有很多图书馆可以提供帮助。 Android 推荐使用XmlPullParser

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2011-09-01
      • 2012-05-14
      • 1970-01-01
      • 2016-05-03
      • 2016-05-10
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多