I am in the case of an asynchronous web application using Smack API.
For a particular user, I managed to get all RosterEntries that are willing to become part of his list.
Unfortunately i could not find anywhere how I can set those RosterEntries status to ‘both’ when my user accepts it.
I tried :
RosterPacket.Item p = new RosterPacket.Item(user, name);
p.setItemType(RosterPacket.ItemType.both);
But then I don’t know how to send this request to my Jabber server!