public void MUC_Configure(String roomname){
try{
muc = new MultiUserChat(XMPPSmackConnection.connection, roomname+Constant._hostNameWithCONF);
muc.create("nickname1");
// Send an empty room configuration form which indicates that we want an instant room
muc.sendConfigurationForm(new Form(Form.TYPE_SUBMIT));
muc.join("nickname1");
muc.invite("column1"+Constant._hostNameWithAt+"/Smack", "Meet me in this excellent room");
muc.addInvitationRejectionListener(this);
muc.addMessageListener(this);
}catch (Exception e) {
e.printStackTrace();
}
}
Finally I done with the above method.