Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

android.view.WindowManager$BadTokenException: Unable to add window #21

Open
droidwithme opened this issue Oct 25, 2016 · 0 comments
Open

Comments

@droidwithme
Copy link

android.view.WindowManager$BadTokenException: Unable to add window -- token android.os.BinderProxy@3646f1de is not valid; is your activity running? at android.view.ViewRootImpl.setView(ViewRootImpl.java:579) at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:282) at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:85) at android.app.Dialog.show(Dialog.java:298) at com.github.javiersantos.bottomdialogs.BottomDialog.show(BottomDialog.java:40) at com.github.javiersantos.bottomdialogs.BottomDialog$Builder.show(BottomDialog.java:302) at com.ashhwa.bestforwaste.ui.RequestPickupFirstActivity$1.onSuccess(RequestPickupFirstActivity.java:134) at com.ashhwa.bestforwaste.apimanager.ServerHandler$1.onResponse(ServerHandler.java:63) at com.ashhwa.bestforwaste.apimanager.ServerHandler$1.onResponse(ServerHandler.java:56) at com.android.volley.toolbox.JsonRequest.deliverResponse(JsonRequest.java:65) at com.android.volley.ExecutorDelivery$ResponseDeliveryRunnable.run(ExecutorDelivery.java:99) at android.os.Handler.handleCallback(Handler.java:739) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:135) at android.app.ActivityThread.main(ActivityThread.java:5343) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:905) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:700)
I am getting this crash when i press back button before generation of the dialog. like there is an api and its data will be shown in dialog. but before the api calls get completed i press the back button and quite the activity now when the api call finishes app crashes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant