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.
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());
}
}
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.
Thanks in advance.
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.