When I add a user, that user does not call "entriesAdded" I think it's listener problem or how to add users.
For example:
User2 -> Agree -> User 1
User 1 does not call the listener "entriesAdded"
The method, "entriesAdded" rarely called, why? What am I doing wrong?
roster.addRosterListener(newRosterListener(){
@Override
publicvoid presenceChanged(Presence presence){
system.out.println("1");
}
@Override
publicvoid entriesUpdated(Collection<String> arg0){
// Called when a roster entries are updated.
system.out.println("2");
}
@Override
publicvoid entriesDeleted(Collection<String> arg0){
// Called when a roster entries are removed.
system.out.println("3");
}
@Override
publicvoid entriesAdded(Collection<String> arg0){
// Called when a roster entries are added.
system.out.println("4");
}
});
}
}
});
What actually happens is that when I add or remove always called "entriesUpdated" ("2"), because rarely called ("4")?