Hy..
sorry for post this subject again, but my problem isn't solved..
I need to block and unblock users using Java smack api 2.2.1.. someone can
help me?
please???
i've been trying to do:
public void blockingContactGateway(XMPPConnection connection, String
contact, String
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 + . +
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]);
Every xmppConnection have its own roster :P
when you create a xmppconnection like:
XMPPConnection connection = new XMPPConnection(jabber.org);
the roster is the user that logs using the XMPPConnection, like:
connection.login(user1, password);
to get this roster, you need just to do implement:
!
thanks.
Bruno Bechler Machado
Hy,
i'm tryng to add a contact to my msn account using this code:
public void addContact(XMPPConnection connection, String contact, String
gatewayName)
{
Roster roster = connection.getRoster();
String absoluteFriend = contact + @ + gatewayName + . +
connection.getServiceName();
anyone knows how do i register a msn/icq/aol... accounts to my jabber
account, without using the wildfire admin?
I need to do that using the smack and wildfire apis..!
please, if someone have a exemple, it would be very helpfull.
first, try to desactivate the windows firewall, if doesnt work, check the
communication port between your server and the client. The port must be the
same.
and at last, if none of those two options works, check your gprs connection
on the mobile.
?
thanks guys,
Bruno Bechler Machado
[EMAIL PROTECTED]