android.view.WindowManager$BadTokenException: Unable to add window -- token
android.os.BinderProxy@7b46f6d is not valid; is your activity running?
at android.view.ViewRootImpl.setView(ViewRootImpl.java:1297)
at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:403)
at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:148)
at android.app.Dialog.show(Dialog.java:352)
at w.u.run(R8$$SyntheticClass:381)
at android.os.Handler.handleCallback(Handler.java:942)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:201)
at android.os.Looper.loop(Looper.java:288)
at android.app.ActivityThread.main(ActivityThread.java:8061)
at java.lang.reflect.Method.invoke(Native Method)
at
com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:703)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:911)
Issue explanation (write below this line)
Exception
Crash log