How would I get the Nickname of a person and display
it onscreen???
I think I might have to use gerParticipant? not sure.
An example would help.
What are you trying to achieve here? Do you need to get the name of a RosterEntry (a.k.a nickname) or do you need to get the XMPP user (e.g. jdoe@jivesoftware.com) of the participant of a chat?
In order to get the nickname of an entry you need to use RosterEntry.getName(). Whilst to get the XMPP user of the participant of a chat you need to use Chat.getParticipant(). If you need to get the nickname of the chat’'s participant then you have to do something like this: