我正在使用 smack 3.2.1 API 制作 gtalk。我被群聊实施困住了。这是我发起群聊的代码:
conf = new MultiUserChat(connection, "room@groupchat.google.com"); // create object of multiserchat class
try
{ // Create the room
conf.create("room@groupchat.google.com");
// Send an empty room configuration form which indicates that we want an instant room
conf.sendConfigurationForm(new Form(Form.TYPE_SUBMIT));
}
catch (XMPPException e)
{
Toast.makeText(this, "Error in create room: "+e.toString(), Toast.LENGTH_LONG).show();
}
conf.invite("userid", "Invitation for group chat");
但我收到错误:服务不可用 (503)
提前致谢。