protected static void tranFriend() { // TODO Auto-generated method stub if (userList != null) { list = new ArrayList<Friend>(); for (User user : userList) { Friend friend = new Friend(); friend.setId(user.getId()); friend.setName(user.getName()); friend.setPhone(user.getAccount()); friend.setImgs(user.getImg()); list.add(friend); } } }
@Override public UserInfo getUserInfo(final String uId) { list = RongYunFrindsManager.getAllFriends(); if (list == null) { } else { for (Friend friend : list) { if (friend.getPhone() == uId) { info = new UserInfo(friend.getPhone(), friend.getName(), Uri.parse(friend.getImgs())); } } } return info; }