title: XMPP user presence itself
body: <p>In my application there is a requirement. I want to get the presence and mode of the login user itself how can i get that???</p>
  
  <pre><code> Roster roster = connection.getRoster();
      Presence checkPresence = roster.getPresence(useritself);
  </code></pre>
  
  <p>When I use this code to get the presence of the login user it always gives me unavailable.</p>
  
  <p>How can I get the presence of login user itself by this means or any other means</p>