0
我已經安裝了tigase7.0.2以及基本配置。MUC房間鎖定默認安裝tigase
現在我執行使用安裝服務器下面的代碼MUC:
創建
MultiUserChatManager manager = MultiUserChatManager.getInstanceFor(connection);
MultiUserChat muc = MainActivity.manager.getMultiUserChat("[email protected]" + connection.getServiceName());
空間加入
房muc = MainActivity.manager.getMultiUserChat("[email protected]" + connection.getServiceName());
muc.join(connection.getUser().split("@")[0]);
muc.addMessageListener(new MessageListener() {
@Override
public void processMessage(final Message message) {
runOnUiThread(new Runnable() {
@Override
public void run() {
Toast.makeText(UserListActivity.this, message.getFrom() + ":" + message.getBody(), Toast.LENGTH_SHORT).show();
}
});
}
});
當我加入房以下消息出現在吐司。
: Room is locked. Please configure.
: Welcome! You created new Multi User Chat Room. Room is locked now. Configure it please!
當我加入會議室時,會在日誌中給出以下錯誤。