0

What is the best way to send presence to the server. Currently I am using multiple times QBAuth.createSession(this); but I think there should be abetter way to send presence then to auth/login every time?

P.S. I don't want to connect with any user to send my presence status.

namik
  • 53
  • 1
  • 8

1 Answers1

1
Presence presence = new Presence(Presence.Type.available);
con.sendPacket(presence);

http://www.igniterealtime.org/builds/smack/docs/latest/documentation/gettingstarted.html

Rubycon
  • 18,156
  • 10
  • 49
  • 70