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?