Android SMACK get USER Online Status
public void getUserStatus(){
{
Presence presence;
presence = roster.getPresence(jid);
if (presence.getMode().name().equalsIgnoreCase("available")) {
} else if (presence.getMode().name().equalsIgnoreCase("away")) {
} else if(presence.getMode().name().equalsIgnoreCase("xa")){
}
else if(presence.getMode().name().equalsIgnoreCase("chat")){
}
else {
//dnd
}
}
No comments:
Post a Comment