Quantcast
Channel: Ignite Realtime : Unanswered Discussions - Support
Viewing all articles
Browse latest Browse all 4979

How to extend RosterEntry with custom attribute that is not related to presence

$
0
0

Hi, I need to create android application that will have extended Roster with custom attributes like this:

 

username,

presence (online/offline),

customAttribute (playing football - custom status that the user sets) ...


How to get/set these information from RosterEntries saved in openfire db within Android Smack 4.1 client.

 

Roster roster = Roster.getInstanceFor(xmpptcpConnection);
for (RosterEntry entry : roster.getEntries()) {  String username = entry.getUser().toString();  String status = roster.getPresence(entry.getUser()).getStatus();  String customAttribute = entry.getCustomAttribute() // <===== I WANT TO BE ABLE TO DO THIS  rosterList.add(entry.getUser() + ": " + status);
}

 

 

If that is not possible, what would you suggest to do?


Viewing all articles
Browse latest Browse all 4979

Trending Articles