incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Plowman <ben.plow...@gmail.com>
Subject Re: Strange error...
Date Tue, 14 Feb 2012 17:00:24 GMT
I believe this occurs when you try to open a dialog while the activity
used as context for the dialog is shutting down.

There is a method, Activity.isFinishing(), which, if true, means you
shouldn't try to show a dialog. That should stop this exception from
being thrown in the future.

--Ben

On Feb 14, 2012, at 7:37 AM, Christian Grobmeier <grobmeier@gmail.com> wrote:

> Hello folks,
>
> one of my users reported me an error over the android store. I just
> have the information below.
> But, to be honest, the phonegap version i used was pretty old... i
> think it was 1.0. Today I made an upgrade with the hope it is fixed.
> Anyway, anybody else who ever had this?
>
> Thanks!
> Christian
>
>
> android.view.WindowManager$BadTokenException: Unable to add window --
> token android.os.BinderProxy@410ad0e8 is not valid; is your activity
> running?
> at android.view.ViewRootImpl.setView(ViewRootImpl.java:513)
> at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:301)
> at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:215)
> at android.view.WindowManagerImpl$CompatModeWrapper.addView(WindowManagerImpl.java:140)
> at android.view.Window$LocalWindowManager.addView(Window.java:537)
> at android.app.Dialog.show(Dialog.java:278)
> at android.app.AlertDialog$Builder.show(AlertDialog.java:932)
> at com.phonegap.DroidGap$GapClient.onJsAlert(DroidGap.java:821)
> at android.webkit.CallbackProxy.handleMessage(CallbackProxy.java:519)
> at android.os.Handler.dispatchMessage(Handler.java:99)
> at android.os.Looper.loop(Looper.java:137)
> at android.app.ActivityThread.main(ActivityThread.java:4424)
> at java.lang.reflect.Method.invokeNative(Native Method)
> at java.lang.reflect.Method.invoke(Method.java:511)
> at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
> at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
> at dalvik.system.NativeStart.main(Native Method)

Mime
View raw message