Hello guys.
I’'m having a problem in presence packets.
I implement inside a thread a rosterListener in that manner:
public Roster objRoster;
public synchronized void run()
{
RosterListener objRosterListener = new rosterListerner();
this.objRoster.addRosterListener(objRosterListener);
}
so, rosterListerner is :
class rosterListerner implements RosterListener{
public void rosterModified() { }
public void presenceChanged(String user) {
UpdateStatus(user);
}
When i receive a presence packet of that type (a account in a transport):
Andre Natal (Busy)dnd
The presenceChanged is fired , but, when i receive a packet of that type:
available1
available1
From a normal jabber account, without the element the presenceChanged is not fired.
Anyone knows what I need to do ?
Should I need to set anything in roster object before implement the listener ?