Android: SmartFox Server: check room is created or not?

Go To StackoverFlow.com

0

I am working in android. I want to create a chat room dynamically using programming.

I am using following code for this:-

     private void createNewRoom()
    {
    // Create a new chat Room
     RoomSettings settings = new RoomSettings("MyChatRoom");
     settings.setMaxUsers(40);
     settings.setGroupId("MyChatRoom");
     sfs.send(new CreateRoomRequest(settings));

    }

Now i want to see that whether this room is created or not. So please suggest me what should i do to check this ? i want to show this created chat room.

Thank you in advance.

2012-04-04 07:53
by Pushpendra Kuntal
how to create room and how to add friends in that room give me any link and example exaplain with little bit more code... - NagarjunaReddy 2013-01-22 05:52


1

I solved my problem.

When we send request to add room dynamically then after your request has sent, we should print list of rooms in that zone.

If you have name of your room in that list this means your room has added.

This code is used to get rooms in particular zone.

sfs.getRoomList()

I hope this will help you.

2012-04-09 14:28
by Pushpendra Kuntal
Ads