Strange error showing up on my errors Developer Console android?
<p>I honestly have no idea why people are gettning these errors. Its very strange to me. If anyone can help me that would be lovely</p>

<p>From Activity 1:</p>

<p>1)</p>

<pre><code>java.lang.IllegalArgumentException: View not attached to window manager
at android.view.WindowManagerImpl.findViewLocked(WindowManagerImpl.java:355)
at android.view.WindowManagerImpl.removeView(WindowManagerImpl.java:200)
at android.view.Window$LocalWindowManager.removeView(Window.java:432)
at android.app.Dialog.dismissDialog(Dialog.java:280)
at android.app.Dialog.access$000(Dialog.java:73)
at android.app.Dialog$1.run(Dialog.java:113)
at android.app.Dialog.dismiss(Dialog.java:270)
at com.xxx.xxx.b$RetrieveSearch.onPostExecute(b.java:204)
at com.xxx.xxx.b$RetrieveSearch.onPostExecute(b.java:1)
at android.os.AsyncTask.finish(AsyncTask.java:417)
at android.os.AsyncTask.access$300(AsyncTask.java:127)
at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:429)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:130)
at android.app.ActivityThread.main(ActivityThread.java:3683)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:870)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:628)
at dalvik.system.NativeStart.main(Native Method)
</code></pre>

<p>2) </p>

<pre><code>java.lang.IllegalArgumentException: View not attached to window manager
at android.view.WindowManagerImpl.findViewLocked(WindowManagerImpl.java:355)
at android.view.WindowManagerImpl.removeView(WindowManagerImpl.java:200)
at android.view.Window$LocalWindowManager.removeView(Window.java:432)
at android.app.Dialog.dismissDialog(Dialog.java:278)
at android.app.Dialog.access$000(Dialog.java:71)
at android.app.Dialog$1.run(Dialog.java:111)
at android.app.Dialog.dismiss(Dialog.java:268)
at com.xxx.xxx.b$RetrieveSearch.onPostExecute(b.java:204)
at com.xxx.xxx.b$RetrieveSearch.onPostExecute(b.java:1)
at android.os.AsyncTask.finish(AsyncTask.java:417)
at android.os.AsyncTask.access$300(AsyncTask.java:127)
at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:429)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:123)
at android.app.ActivityThread.main(ActivityThread.java:4627)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:521)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:858)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
at dalvik.system.NativeStart.main(Native Method)
</code></pre>

<p>Code at around 204:</p>

<pre><code>    @Override
    protected void onPreExecute() {
        progressa = new ProgressDialog(b.this);

        progressa.setMessage(getString(R.string.loading_top));

        progressa.setCancelable(false);

        progressa.setButton(DialogInterface.BUTTON_NEGATIVE, getString(R.string.cancel), new DialogInterface.OnClickListener() {
            public void onClick(DialogInterface dialog, int which) {
                TextView a = (TextView)findViewById(R.id.fs);
                a.setText(R.string.cancelled);
                a(true);
            }
        });

    progressa.show();
        super.onPreExecute();
    } 
    @Override
    protected void onPostExecute(Void result) {
        //CUT OUT NOTHING TO DO WITH THE DIALOG ERROR

        if(progressa.isShowing() &amp;&amp; progressa != null){
                progressa.dismiss();
                progressa = null;
        }

        super.onPostExecute(result);
    }
</code></pre>

<p>Activity 2:</p>

<p>3)</p>

<pre><code>java.lang.IllegalArgumentException: View not attached to window manager
at android.view.WindowManagerImpl.findViewLocked(WindowManagerImpl.java:355)
at android.view.WindowManagerImpl.removeView(WindowManagerImpl.java:200)
at android.view.Window$LocalWindowManager.removeView(Window.java:432)
at android.app.Dialog.dismissDialog(Dialog.java:278)
at android.app.Dialog.access$000(Dialog.java:71)
at android.app.Dialog$1.run(Dialog.java:111)
at android.app.Dialog.dismiss(Dialog.java:268)
at com.xxx.xxx.a$RetrieveSearch.onPostExecute(a.java:470)
at com.xxx.xxx.a$RetrieveSearch.onPostExecute(a.java:1)
at android.os.AsyncTask.finish(AsyncTask.java:417)
at android.os.AsyncTask.access$300(AsyncTask.java:127)
at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:429)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:123)
at android.app.ActivityThread.main(ActivityThread.java:4627)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:521)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:876)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:634)
at dalvik.system.NativeStart.main(Native Method)
</code></pre>

<p>Code Around line 470:</p>

<pre><code>    @Override
    protected void onPreExecute() {
        progressa = new ProgressDialog(a.this);
        progressa.setMessage("Loading Search Results...");
        progressa.setCancelable(false);
        progressa.setButton(DialogInterface.BUTTON_NEGATIVE, getString(R.string.cancel), new DialogInterface.OnClickListener() {
            public void onClick(DialogInterface dialog, int which) {
                TextView a = (TextView)findViewById(R.id.a);
                a.setText("XD");
                a.cancel(true);
            }
        });
        progressa.show();

        super.onPreExecute();
    } 

    @Override
    protected void onPostExecute(Void result) {
        //REMOVED NOTHING TO DO WITH DIALOGS

        setListAdapter(adapter);

        if(progressa != null){
                progressa.dismiss();
                progressa = null;
        }
        super.onPostExecute(result);
    }
</code></pre>

<p>I DONT THINK THIS IS A SCREEN ORIENTATION THING I HAVE:
        this.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT); 
in my activity.</p>

<p>Please note I removed some of the code and such and hid some things from it though it works perfectly find on GALAXY S2 LTE, OPTIMUS ONE, &amp; Nexus One</p>
