title: onPostExecute() does not execute after doInBackground()
body: <p>I have this code </p>
  
  <pre><code>public class AsyncClassTest extends Activity {
  
  String strMessage;
  
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
  
      new MyClass().execute();
  
      Toast.makeText(AsyncClassTest.this, strMessage, Toast.LENGTH_LONG)
              .show();
  
  }
  
  public class MyClass extends AsyncTask&lt;String, Void, String&gt; {
  
      @Override
      protected String doInBackground(String... params) {
          return "Hello world!!!";
      }
  
      @Override
      protected void onPostExecute(String result) {
          strMessage = result;
      }
  }
  </code></pre>
  
  <p>}</p>
  
  <p>and when is runs, after <code>new MyClass().execute();</code> it shows that <code>strMessage</code> is null and after showing toast code goes in <code>onPostExecute()</code> method, how to make this code run and show the message after <code>new MyClass().execute();</code></p>