title: ASmack - Where to get ChatManager from?
body: <p>I am trying to make a small XMPP-capable chat application for a school project using aSmack-8-4-rc2 on Android 4.2.2, and I am having issues getting a <code>ChatManager</code> object to process incoming messages.</p>
  
  <p>Every example I have seen so far does</p>
  
  <pre><code>ChatManager manager = connection.getChatManager();
  </code></pre>
  
  <p>However, it seems that at some point during development, the function <code>getChatManager()</code> was either removed or replaced from class <code>XMPPConnection</code> (or <code>XMPPTCPConnection</code>, since the former seems to have been deprecated), and I am unable to find ANY documentation or examples that give me any indication of what replacements I can get.</p>
  
  <p>I tried using constructors from the class <code>ChatManager</code>. It does appear to have a constructor, albeit a private one and I am therefore unable to create the object. I am assuming it is intended to be a singleton, but I have yet to find a way to get to it.</p>
  
  <p>Does anybody know where was this function moved to?</p>