I’'m getting an error with roster.getEntries()
I was trying something like the example in http://www.igniterealtime.org/builds/smack/docs/latest/documentation/roster.html but it doesn’'t work…
Roster roster = con.getRoster();
for (Iterator i=roster.getEntries(); i.hasNext(); ) {
System.out.println(i.next());
}
I also have an other problem with
final Roster roster = con.getRoster();
roster.addRosterListener(new RosterListener() {
public void rosterModified() {
// Ignore event for this example.
}
public void presenceChanged(String user) {
+// If the presence is unavailable then “null” will be printed,
// which is fine for this example.+
System.out.println("Presence changed: " + roster.getPresence(user));
}
});
it says: The type new RosterListener(){} must implement the inherited abstract method RosterListener.entriesUpdated(Collection<String>)
what I’'m supposed to do?
Message was edited by: alucard