First of all, I’'d recommend to check that Smack is receiving this entry from the server. You can open a debugger and/or print all the roster entries to the console in order to check that “yosdos@jabber.org” is in your roster.
If you know that a given user is online then Smack will receive the user’‘s presence if you are subscribed to the user’‘s presence. My advice is to open a debugger an check that you are receiving the user’'s presence.
Roster.getPresence(String) will return null if the user is offline or if no presence information is available.
I know that, but I can’‘t open the smack debugger because i’‘m using a servlet, and for some reason I can’‘t run the servlet when I’'m putting XMPPConnection.DEBUG_ENABLED = true before I create my connection.