Bruno Bechler Machado wrote:
thanks for helping guys!
i solved the problem, if anyone needs it, here is a code example:
public void addContact()
   {
       Roster roster = connection.getRoster();
Presence subscribe = new Presence(Presence.Type.SUBSCRIBE); subscribe.setTo(" [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>");
       subscribe.setFrom(connection.getUser());
       connection.sendPacket(subscribe);
    }

What's the "roster" for in this sample? ;)

Reply via email to