I am working on a chat application on Android using XMPP. I retrieve the presence of RosterEntery when the Presence: Available object is present (online). And I call presence.getMode() , which returns null .
Can someone tell me why presence.getMode() returns null in case of an online contact? And when the presence object contains: accessible (off) or (dnd), then Presence.getMode () works fine. Can anyone help me on this?
source share