Is it possible to get all users list which contain

2019-06-14 03:36发布

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条回答
迷人小祖宗
2楼-- · 2019-06-14 04:27
  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.

查看更多
登录 后发表回答