powered by Jive Software

Contacts

HI!, how I can add and delete a contacts using SMACK and a WILDFIRE server?

THANKS!

When you say using Smack I presume you mean your writing an IM client and you want to have the functionality within your client to be able to subscribe and unsubscribe from another users presence.

Best place to start would be to look at the documentation for managing presence and then take a look at the Javadocs, specifically Roster#createEntry() and Roster#removeEntry, these methods will both create a new Roster Entry and presence subscription and remove a RosterEntry from your Roster removing any presence subscriptions you had.

hth

Jon