How to create a room

I tried this code but failed

connConfig.setSASLAuthenticationEnabled(true);
connection = new XMPPConnection(connConfig);
try {
connection.connect();
connection.login(“ypj”, “11123456”);
muc = new MultiUserChat(connection, “jsm@conference.askpop82”);
muc.create(“jsm”);

}catch(XMPPException e){

e.printStackTrace();

}

how to create a room?

please help me!!!

Try this…

connConfig.setSASLAuthenticationEnabled(true);
connection = new XMPPConnection(connConfig);
try {
connection.connect();
connection.login(“ypj”, “11123456”);
muc = new MultiUserChat(connection, “jsm@conference.askpop82”);
muc.create(“jsm”);

muc.sendConfigurationForm(new Form(Form.TYPE_SUBMIT));

}catch(XMPPException e){

e.printStackTrace();

}

Thank you ^^