Get the real online state of user Smack 4.1.6

Hhi folks,

I know it is possible to get the online/offline state from a jid with the roster with

XMPPConnection.getRoster().getPresence(jid).isAvailable();

But I guess this returns the state that this jid user has set in the roster. What about if the user don´t want to show that he is online and set his presence to offline? Is it possible to get the real state of availability no matter what this jid has set to his roster?

thanks to all suggestions…

I can’t imagine it. If it would, it be a security issue. The only one who knows the availability here, is the server, but it shouldn’t expose that information to anybody else.