title: Android sdk alert in main class
body: <p>I have a Problem with the android alert box</p>
  
  <p>I imported <code>"import android.app.AlertDialog;"</code> and now I wanted to show an alert in the main class:</p>
  
  <pre><code>public void main() {
      AlertDialog.Builder builder = new AlertDialog.Builder(this);
      builder.setMessage("hallo").setTitle("!");
      AlertDialog dialog = builder.create();
      dialog.show();
      this.init();
  }
  </code></pre>
  
  <p>The <code>"init"</code> function sets the playground.
  But Unfortunally nothing happens, and also the init woun't execute.
  If I remove the Alert, the init executes perfectly.</p>