Unable to add window in Android
<p>In my dev console, I get the following error:</p>

<p><code>android.view.WindowManager$BadTokenException: Unable to add window -- token android.os.BinderProxy@405126b8 is not valid; is your activity running?</code></p>

<p>It's the follow line: <code>alertDialog = new AlertDialog.Builder(Main.this).create();</code></p>

<p>Here is my code:</p>

<pre><code>@Override
public void onCreate(Bundle icicle) {
    super.onCreate(icicle);
    setContentView(R.layout.splashscreen);

        alertDialog = new AlertDialog.Builder(Main.this).create();

        LoadData();
}
</code></pre>

<p>I dont no whats wrong.</p>
