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?