title: XMPP aSmack - How can I get the current user state (offline/online/away/etc.)?
body: <p>I am new to xmpp/asmack in android.</p>
  
  <p>Can anyone please help me in getting the presence of the user's friends ( roster list)</p>
  
  <p>I am using this :</p>
  
  <pre><code>Presence availability = roster.getPresence(user);
  Mode userMode = availability.getMode();
  </code></pre>
  
  <p>What else should I do to get the availability status of each user listed in my roster.</p>