In my application there is a requirement. I want to get the presence and mode of the login user itself how can i get that???
Roster roster = connection.getRoster();
Presence checkPresence = roster.getPresence(useritself);
When I use this code to get the presence of the login user it always gives me unavailable.
How can I get the presence of login user itself by this means or any other means