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.
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.