title: Design questions about Android chat application
body: <p>I am developing an <code>Android</code> app with a chat feature. <code>Nodejs</code> is being used at server end while <a href="https://github.com/Gottox/socket.io-java-client" rel="nofollow">this</a> android SocketIO client is being used at user end. Following are my questions. Some are not questions but seek confirmation. </p>
  
  <ol>
  <li>I must open socket (for the chat feature) in a worker thread, since it has to listen continuously.</li>
  <li>For above purpose I cannot use <code>AsyncTask</code> since it should not be used for heavy lifting.</li>
  <li>How to implement two way communication between the main thread and worker thread ?</li>
  </ol>