Android XMPP组聊天室成员始终返回零

Android XMPP组聊天室成员始终返回零,android,xmpp,chat,smack,Android,Xmpp,Chat,Smack,创建新房间时的房间配置。 submitForm.setAnswer("muc#roomconfig_passwordprotectedroom", false); submitForm.setAnswer("muc#roomconfig_persistentroom", true); submitForm.setAnswer("muc#roomconfig_changesubject", true); submitForm.setAnswer("muc#roomconfig_publicroom

创建新房间时的房间配置。

submitForm.setAnswer("muc#roomconfig_passwordprotectedroom", false);
submitForm.setAnswer("muc#roomconfig_persistentroom", true);
submitForm.setAnswer("muc#roomconfig_changesubject", true);
submitForm.setAnswer("muc#roomconfig_publicroom", true);
submitForm.setAnswer("muc#roomconfig_allowinvites", true);
submitForm.setAnswer("muc#roomconfig_membersonly", false);
submitForm.setAnswer("muc#roomconfig_moderatedroom", false);
submitForm.setAnswer("muc#roomconfig_roomowners", owners);
muc.sendConfigurationForm(submitForm);
在群聊活动中,当我尝试以下成员和所有者的方法时,所有人都返回零

List<Affiliate> affiliatesMem =   room.getMembers();
List<Occupant> affiliatesMem1 =   room.getParticipants();
List<EntityFullJid> affiliatesMem2 =   room.getOccupants();
List<Affiliate> affiliatesAdmin = room.getAdmins();

Is i need to do some thing extra?

Thanks
List affiliatesMem=room.getMembers();
List affiliatesMem1=room.getParticipants();
List affiliatesMem2=room.getOccumbers();
List affiliatesAdmin=room.getAdmins();
我需要做些额外的事情吗?
谢谢

检查您的rooster共享选项,不同服务器的rooster共享选项不同,但如果您不在服务器上启用rooster共享,它将不会显示您期望的内容。我在openfire server中未找到此类设置,以及如何启用rooster共享设置的任何链接。在openfire中,单击您创建的组名,然后转到编辑组并向下滚动您将看到联系人列表(花名册)共享,只需在openfire中启用它,单击您创建的组名,或者如果您没有组名,请创建一个组并将其作为muc成员、所有者或管理员的一部分,然后转到编辑组并向下滚动您将看到联系人列表(花名册)共享,只需启用它即可