Hi,
We are trying to add new users to OPENIM Jabber Server using SMACK API. Can we get a sample code which is similar to what we trying to do would be of great help.
Thanks,
Hi,
We are trying to add new users to OPENIM Jabber Server using SMACK API. Can we get a sample code which is similar to what we trying to do would be of great help.
Thanks,
connection = new XMPPConnection(server, port);
if (newAccount)
{
AccountManager newAccount = new AccountManager(connection);
newAccount.createAccount(username, password);
}
if (resource == null)
connection.login(username, password);
else
connection.login(username, password, resource);
But probably don’‘t work because OpenIM has a bug in account creation that it’'s not corrected yet!!!
Thanks … it works !!