I hope to get the last logout time of my account :
XMPPConnection con = new XMPPConnection(“domain”);
con.connect();
con.login(“usr”, “pwd”);
LastActivity activity = LastActivityManager.getLastActivity(con, “usr@domain/Smack”);
String idleTime = activity.getIdleTime();
But the value of idleTime is -1. Why?
How can I get the last logout time of my account?
Thanks!