I am new to xmpp/asmack in android.
Can anyone please help me in getting the presence of the user's friends ( roster list)
I am using this :
Presence availability = roster.getPresence(user);
Mode userMode = availability.getMode();
What else should I do to get the availability status of each user listed in my roster.
Just use like this :
Let me know if you have any problem regarding xmpp/asmack
As my experience before you can see status and other from Presence you need to subscribe the user.
for example: user A want to see status and available status from user B, in this case, user A need to subscribe user B. after that user A can see the user B Presence.
Subscribe Code
And your method called inside it.
use like this
If you use RosterListener, it updates the presence in real time, it works for me just fine.