显示好友列表中使用XMPP Android应用 [英] display friends list in android application using XMPP

查看:84
本文介绍了显示好友列表中使用XMPP Android应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我工作的一个聊天应用程序。我需要使用XMPP Android应用程序中显示好友列表。可有人指导我该怎么做。任何样品的例子将是很有用处的我。

I am working on a chat application. I need to display friends list in android application using XMPP. can someone guide me how to do that. Any sample example will be of great use to me.

我已经开发出了低于code。

i have developed the below code.

 public void friendslist()
    {
    Roster roster = connection.getRoster();
    Collection<RosterEntry> entries = roster.getEntries();

    System.out.println("\n\n" + entries.size() + " buddy(ies):");
    for(RosterEntry r:entries)
    {
    System.out.println(r.getUser());
    }
    }

我要显示所有我的列表视图中的联系人。我怎么能achive它。我会很高兴,如果我能得到这样可以解决我的问题的答案。

I need to display all my contacts in a list view. how can i achive it. I shall be happy if i could get the answer that could solve my issue.

先谢谢了。

推荐答案

,即适用于Android(点燃实时开发的Openfire)。它通常是最常用的Andr​​oid XMPP库,据我所知。

Smack, that works on Android (Ignite Realtime developed Openfire). It's generally the most commonly used Android XMPP library as far as I'm aware.

这篇关于显示好友列表中使用XMPP Android应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆