How can I get all room names from server?

I want the client can select exists rooms on server, how can I get all room names?

Hey,

It was in our roadmap to provide an easy way to obtain that information. The Jira issue was: SMACK-13.

Today I will check in the code so you can easily obtain the list of rooms hosted by a MUC service. Take a look at MultiUserChat#getHostedRooms(). You will need to download the next nightly build to obtain this new feature.

Regards,

– Gato

I see , thank you

Thanks! I have been trying to find a way to do that for several hours before I had a look to this post