title: How can I set the xmpp presence to offline?
body: <p>I already used this code to set the XMPP presence to offline but nothing happens.. Please help me</p>
  
  <p>Presence presence;</p>
  
  <p>presence = new Presence(Presence.Type.unavailable);</p>
  
  <p>connection.sendPacket(presence);</p>
  
  <p>I want to set my presence to offline so other users wont be able to send me a message.
  I really need a help    </p>
  
  <p>Thank you!</p>