Simon, This happens when the the jquery mobile is triggered.:
$.mobile.changePage(page); Note that this does not happen all the time, so, very difficult to debug. I googled around and realize that there is a special way to handle dialogs in Android and not sure if the way it is being done in DroidGap.java is the right way. I have submitted a pull request where I have a no-op try/catch around the 2 dismiss calls. Olivier On Wed, Jan 25, 2012 at 7:57 AM, Simon MacDonald <simon.macdon...@gmail.com>wrote: > Hey Olivier, > > We need a bit more context on this stack trace. In what situation does > this crash occur? > > Simon Mac Donald > http://hi.im/simonmacdonald > > > > On Tue, Jan 24, 2012 at 6:22 PM, Olivier Brand <oliv...@passbox.com> > wrote: > > Not sure what is happening but I get this exception in my application: > > > > java.lang.IllegalArgumentException: View not attached to window manager > > > > at > android.view.WindowManagerImpl.findViewLocked(WindowManagerImpl.java:486) > > > > at android.view.WindowManagerImpl.removeView(WindowManagerImpl.java:306) > > > > at > > > android.view.WindowManagerImpl$CompatModeWrapper.removeView(WindowManagerImpl.java:129) > > > > at android.app.Dialog.dismissDialog(Dialog.java:306) > > > > at android.app.Dialog.access$000(Dialog.java:73) > > > > at android.app.Dialog$1.run(Dialog.java:110) > > > > at android.app.Dialog.dismiss(Dialog.java:296) > > > > at com.phonegap.DroidGap.spinnerStop(DroidGap.java:1067) > > > > at com.phonegap.DroidGap$GapViewClient$1$1.run(DroidGap.java:1528) > > > > at android.os.Handler.handleCallback(Handler.java:587) > > > > at android.os.Handler.dispatchMessage(Handler.java:92) > > > > at android.os.Looper.loop(Looper.java:132) > > > > at android.app.ActivityThread.main(ActivityThread.java:4126) > > > > at java.lang.reflect.Method.invokeNative(Native Method) > > > > at java.lang.reflect.Method.invoke(Method.java:491) > > > > at > > > com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:844) > > > > at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:602) > > > > at dalvik.system.NativeStart.main(Native Method) > > > > -- > > *Olivier Brand* > > *CTO Passbox LLC* > -- *Olivier Brand* *CTO Passbox LLC*