AnsweredAssumed Answered

Not able to get joined rooms in smack 4.1.0 rc1

Question asked by Hitendrasinh on Apr 6, 2015
Latest reply on Apr 8, 2015 by Anno van Vliet

Hi,

 

I am trying to get joinned rooms using below code but not able to get it.

 

 

MultiUserChatManager multiUserChatManager = MultiUserChatManager.getInstanceFor(tcpConnection);

                        try {

                            List<String> joinedRooms = multiUserChatManager.getJoinedRooms(tcpConnection.getUser());

                            Log.i(Constant.TAG, "Joined Room Size= " + joinedRooms.size());

                        } catch (SmackException.NoResponseException e) {

                            e.printStackTrace();

                        } catch (XMPPException.XMPPErrorException e) {

                            e.printStackTrace();

                        } catch (SmackException.NotConnectedException e) {

                            e.printStackTrace();

                        }

 

Can any one help me to do this?

Outcomes