title: AsyncTask doesn't invoke onPostExecute()
body: <p>I am writing an <code>AsyncTask</code> as below:</p>
  
  <pre><code>class Load extends AsyncTask&lt;String, String, String&gt; {
  @Override
  protected void onPreExecute() {
  super.onPreExecute();
  }
  @Override
  protected String doInBackground(String... aurl) {
  //do job seconds
  //stop at here, and does not run onPostExecute
  }
  @Override
  protected void onPostExecute(String unused) {
  super.onPostExecute(unused);
  wait = false;
  new Load().execute();
  }
  }
  </code></pre>
  
  <p>And the other method as below:</p>
  
  <pre><code>public void click() {
  new Load().execute();
  while(wait) {
  ;
  }
  }
  </code></pre>
  
  <p>The wait is a global boolean value.</p>