[jdev] Re: Adding a contact to msn from jabber.

Bruno Bechler Machado brunoasdfgh at gmail.com
Wed Mar 7 05:34:09 CST 2007


Thanks guys, but i've tryed everything and didn't work.

basicaly, thats my sorce code:

 String contact = "user%hotmail.com"; // tryed: user%40hotmail.com,
user\40hotmail.com, user%hotmail.com
 Roster roster = connection.getRoster();
 String absoluteFriend = contact + "@" + gatewayName + "." +
connection.getServiceName();
 roster.createEntry(absoluteFriend, contact , null);

Any other ideas?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.jabber.org/pipermail/jdev/attachments/20070307/09808e84/attachment-0002.htm>


More information about the JDev mailing list