Is it possible to get all users list which contain

2019-06-14 04:34发布

问题:

I am doing an app chat in android by asmack with XMPP and want to user client install the application he will be able to retrieve The list of all the users which contain on the database. This will allow to the client be able to select user from the List and joined him to list friend one on one. How can I do that?

If it not possible, how can achieve that?

回答1:

  1. Get the WebManager Instance.
WebManager webMan = ...;

UserManager userMan = webMan.getUserManager();

userMan.getUsers(); // Returns the user collection.

UserManager API

From the collection list you can get all the users you wany.