android.view.WindowManager$BadTokenException

Unable to add window -- token null is not for an application

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web626

Stack trace

  • 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) at dalvik.system.NativeStart.main(Native Method)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

filpgamefilpgame
2 times, last one
Unknown visitor
Unknown visitorOnce,
dontdropmybassdontdropmybass
2 times, last one
bayukresnobayukresno
14 times, last one
joni1408joni1408
5 times, last one
52 more bugmates