powered by Jive Software

Android Xmpp entriesAdded rarely called

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(new RosterListener() {
@Override
public void presenceChanged(Presence presence) {
system.out.println(“1”);
}

                @Override
                public void entriesUpdated(Collection<String> arg0) {
                    // Called when a roster entries are updated.
                    system.out.println("2");
                }

                @Override
                public void entriesDeleted(Collection<String> arg0) {
                    // Called when a roster entries are removed.
                    system.out.println("3");
                }

                @Override
                public void 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”)?