-
Notifications
You must be signed in to change notification settings - Fork 10
Description
Facing this ISSUE below is my code
android.view.WindowManager$BadTokenException: Unable to add window -- token android.os.BinderProxy@4bf1d6a is not valid; is your activity running?
at android.view.ViewRootImpl.setView(ViewRootImpl.java:579)
at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:313)
at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:86)
at android.app.Dialog.show(Dialog.java:322)
at android.app.AlertDialog$Builder.show(AlertDialog.java:1112)
at com.karan.app001.activities.RuntimePermissionsActivity$1.run(RuntimePermissionsActivity.java:95)
at android.app.Activity.runOnUiThread(Activity.java:5573)
at com.karan.app001.activities.RuntimePermissionsActivity.ConfirmDialog(RuntimePermissionsActivity.java:73)
at com.karan.app001.activities.RuntimePermissionsActivity.requestAppPermissions(RuntimePermissionsActivity.java:59)
at com.karan.app001.activities.SplashScreen.access$001(SplashScreen.java:57)
at com.karan.app001.activities.SplashScreen$1.run(SplashScreen.java:78)
at android.os.Handler.handleCallback(Handler.java:742)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:5529)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:739)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:629)