roster.createEntry(String user, String name, String) has no effect

Hi,

i am using roster.createEntry(String user, String name, String[] groups) to create an entry realtime but this has no effect.

I guess this has to do with the server Response delay, is there a more fancy way to wait for the createEntry to take effect and then move on. I am currently using Thread.sleep(msec); but was wondering if there was a more fancy way.

thanks!

Using rosterListeners you can listen for the new entries being created.

Thanks,

Alex

Thanks! That will do.