An Android application is encountering a WindowManagerBadTokenException when trying to add a window. This occurs because the activity that the window is trying to add to is not currently running, as the token passed is invalid. The exception happens when trying to show a dialog, and occurs during bluetooth and barcode scanning operations in the application.
An Android application is encountering a WindowManagerBadTokenException when trying to add a window. This occurs because the activity that the window is trying to add to is not currently running, as the token passed is invalid. The exception happens when trying to show a dialog, and occurs during bluetooth and barcode scanning operations in the application.
An Android application is encountering a WindowManagerBadTokenException when trying to add a window. This occurs because the activity that the window is trying to add to is not currently running, as the token passed is invalid. The exception happens when trying to show a dialog, and occurs during bluetooth and barcode scanning operations in the application.
android.view.WindowManager$BadTokenException: Unable to add window -- token android.os.BinderProxy@5b08598 is not valid; is your activity running? at android.view.ViewRootImpl.setView(ViewRootImpl.java:1351) at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:462) at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:114) at android.app.Dialog.show(Dialog.java:505) at cn.paperang.international.utils.j.a(SourceFile:173) at cn.paperang.international.utils.j.b(SourceFile:255) at cn.paperang.international.bluetooth.BtManager.c(SourceFile:940) at cn.paperang.international.bluetooth.BtManager.a(SourceFile:5111) at cn.paperang.international.zxing.v.CaptureActivity.a(SourceFile:920) at cn.paperang.international.zxing.v.CaptureActivity.c(SourceFile:641) at cn.paperang.international.zxing.v.CaptureActivity.d(SourceFile:657) at cn.paperang.international.zxing.v.CaptureActivity.lambda$rpKNXAdDegiGBH5UtxhGkF3U3m E(Unknown Source:0) at cn.paperang.international.zxing.v.-$ $Lambda$CaptureActivity$rpKNXAdDegiGBH5UtxhGkF3U3mE.run(Unknown Source:6) at android.os.Handler.handleCallback(Handler.java:938) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:246) at android.app.ActivityThread.main(ActivityThread.java:8414) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:596) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1130)