title: Android:: Blocking main thread for worker thread to finish before executing other tasks in main thread
body: <p>I am executing some task in the UI thread and created a worker thread that does the networking stuff for me. However, I have something important that needs to be executed once the worker thread finishes. Could anybody please suggest me a solution?</p>
  
  <pre><code>{
      Main thread...
      worker thread created..and executed..
      //I need to wait here for the worker thread to finish//
      some useful task to be done
  }
  </code></pre>
  
  <p>Thanks in advance!</p>