<div>Hy,</div>
<div>i'm tryng to add a contact to my msn account using this code:</div>
<div>
<p>public void addContact(XMPPConnection connection, String contact, String gatewayName)<br>{<br> Roster roster = connection.getRoster();<br> String absoluteFriend = contact + "@" + gatewayName + "." +
connection.getServiceName();</p>
<p><br> roster.createEntry(absoluteFriend, contact, new String[] {"group1"});<br>}</p>
<p>but i'm having a problem, and i dont know how to solve, example:</p>
<p><br>addContact(xMPPConnection, "<a href="mailto:test@hotmail.com">test@hotmail.com</a>", "msn");</p>
<p>Error at the console:<br><iq id="9F0m8-4" to="<a href="mailto:thisUser@myservice/Smack">thisUser@myservice/Smack</a>" type="error"><query xmlns="jabber:iq:roster"><item jid="
<a href="mailto:test@hotmail.com@msn.myservice">test@hotmail.com@msn.myservice</a>" name="<a href="mailto:test@hotmail.com"><group>group1</group></item></query><error">test@hotmail.com"><group>group1</group></item></query><error
</a> code="400"></error></iq></p>
<p><br> </p></div>