Getting the full user ID

I want to set the to attribute of an iq packet to be the full user ID of the remote user. However I can’'t find a method which will give me the information.

i.e. I have someUser@someServer but I want someUser@someServer/someOtherInfo

If I’‘m talking Smack to Smack I can manually append /Smack but that doesn’‘t work when I’'m talking to another client

You want to use Roster#getPresences(userID) then iterate through that list looking for the resource with the highest priority.

Many thanks!

That seems to have fixed the problem - I have just made my first Jabber-RPC call

Thanks again fopr such a quick reply

no problem, glad I could help.