public void addFriend ( Friend friend ) { try { get ( ) . addEntry ( friend . get ( ) ) ; } catch ( NoResponseException | XMPPErrorException | NotConnectedException e ) { e . printStackTrace ( ) ; } }
Moves a friend to this group and removes the friend from his previous group . This is an asynchronous call .