Please let me know the ideas for implementing the following scenarios using Smack API.
To retrieve the user’s last presence mode.
For example, if an user sets his presence mode to "dnd", on logging in next time to the server, I like to retrieve his last presence mode i.e., “dnd” to be set in my client application. Its similar to how Gtalk behaves w.r.t this last presence mode.
To retrieve the currently logged in user’s presence info using Smack. I can see methods for retrieving roster’s presence info, but I am unable to find the methods for retrieving presence of the user itself.