android.view.WindowManager$BadTokenException: Unable to add window -- token null is not for an application

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via GitHub by alexlittle
, 9 months ago
Unable to add window -- token null is not for an application
via Stack Overflow by Unknown author, 2 years ago
Unable to add window -- token null is not for an application
via GitHub by door43app
, 2 years ago
Unable to add window -- token android.os.BinderProxy@422da3c8 is not valid; is your activity running?
via GitHub by door43app
, 2 years ago
Unable to add window -- token android.os.BinderProxy@422da3c8 is not valid; is your activity running?
via GitHub by door43app
, 1 month ago
Unable to add window -- token android.os.BinderProxy@3cff9750 is not valid; is your activity running?
via GitHub by abhishekzambre
, 1 year ago
Unable to add window -- token android.os.BinderProxy@3380d31e is not valid; is your activity running?
android.view.WindowManager$BadTokenException: Unable to add window -- token null is not for an application
at android.view.ViewRootImpl.setView(ViewRootImpl.java:768)
at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:278)
at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:69)
at android.app.Dialog.show(Dialog.java:289)
at org.digitalcampus.oppia.utils.UIUtils.showAlert(UIUtils.java:178)
at org.digitalcampus.oppia.utils.UIUtils.showAlert(UIUtils.java:155)
at org.digitalcampus.oppia.fragments.LoginFragment.submitComplete(LoginFragment.java:142)
at org.digitalcampus.oppia.task.LoginTask.onPostExecute(LoginTask.java:160)
at org.digitalcampus.oppia.task.LoginTask.onPostExecute(LoginTask.java:46)
at android.os.AsyncTask.finish(AsyncTask.java:632)
at android.os.AsyncTask.access$600(AsyncTask.java:177)
at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:645)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:146)
at android.app.ActivityThread.main(ActivityThread.java:5602)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1283)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1099)

Users with the same issue

2 times, 9 months ago
Samebug visitor profile picture
Unknown user
Once, 11 months ago
2 times, 1 year ago
14 times, 1 year ago
5 times, 1 year ago
55 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.