try { List<String> usernames=EMClient.getInstance().contactManager().getAllContactsFromServer(); } catch (HyphenateException e) { e.printStackTrace(); }
集成环信最好是使用官方提供的demo