Loading...
Processing Forum
Recent Topics
All Forums
Screen name:
swaqpoli
swaqpoli's Profile
1
Posts
1
Responses
0
Followers
Activity Trend
Last 30 days
Last 30 days
Date Interval
From Date :
To Date :
Go
Loading Chart...
Posts
Responses
PM
Show:
All
Discussions
Questions
Expanded view
List view
Private Message
presence notification in smack api
[2 Replies]
07-Jul-2011 12:51 AM
Forum:
Contributed Library Questions
hello
i'm trying to implement a chat using SMACK API library. now I have a problem to presence notification. this is the code:
public void displayBuddyList()
{
Roster roster = connection.getRoster();
Collection<RosterEntry> entries = roster.getEntries();
System.out.println("\n\n" + entries.size() + " buddy(ies):");
Presence presence;
for(RosterEntry r:entries)
{
System.out.println(r.getUser());
presence = roster.getPresence(r.getUser());
System.out.println(presence);
}
}
but my contacts are always unavailable
Could you help me? pleaseeeeeeeeeee
«Prev
Next »
Moderate user : swaqpoli
Forum