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

GitHub | alexlittle | 2 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    App crashing on login

    GitHub | 2 months ago | alexlittle
    android.view.WindowManager$BadTokenException: Unable to add window -- token null is not for an application
  2. 0

    android.view.WindowManager$BadTokenException: Unable to add window -- token android.os.BinderProxy@42b4efa8 is not valid; is your activity running?

    GitHub | 4 years ago | alexlittle
    android.view.WindowManager$BadTokenException: Unable to add window -- token android.os.BinderProxy@42b4efa8 is not valid; is your activity running?
  3. 0

    Creating Activity by using AsyncTask in Android

    Stack Overflow | 4 years ago | rebulanyum
    android.view.WindowManager$BadTokenException: Unable to add window -- token null is not for an application
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    App crashes when calling AsyncTask from GCMIntentService

    Stack Overflow | 2 years ago | user3650191
    android.view.WindowManager$BadTokenException: Unable to add window -- token null is not for an application
  6. 0

    BadTokenException in StatsActivity

    GitHub | 3 years ago | roundhill
    android.view.WindowManager$BadTokenException: Unable to add window -- token android.os.BinderProxy@418db850 is not valid; is your activity running?
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. android.view.WindowManager$BadTokenException

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

    at android.view.ViewRootImpl.setView()
  2. Android Platform
    Dialog.show
    1. android.view.ViewRootImpl.setView(ViewRootImpl.java:768)
    2. android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:278)
    3. android.view.WindowManagerImpl.addView(WindowManagerImpl.java:69)
    4. android.app.Dialog.show(Dialog.java:289)
    4 frames
  3. org.digitalcampus.oppia
    LoginTask.onPostExecute
    1. org.digitalcampus.oppia.utils.UIUtils.showAlert(UIUtils.java:178)
    2. org.digitalcampus.oppia.utils.UIUtils.showAlert(UIUtils.java:155)
    3. org.digitalcampus.oppia.fragments.LoginFragment.submitComplete(LoginFragment.java:142)
    4. org.digitalcampus.oppia.task.LoginTask.onPostExecute(LoginTask.java:160)
    5. org.digitalcampus.oppia.task.LoginTask.onPostExecute(LoginTask.java:46)
    5 frames
  4. Android Platform
    ActivityThread.main
    1. android.os.AsyncTask.finish(AsyncTask.java:632)
    2. android.os.AsyncTask.access$600(AsyncTask.java:177)
    3. android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:645)
    4. android.os.Handler.dispatchMessage(Handler.java:102)
    5. android.os.Looper.loop(Looper.java:146)
    6. android.app.ActivityThread.main(ActivityThread.java:5602)
    6 frames
  5. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invokeNative(Native Method)
    2. java.lang.reflect.Method.invoke(Method.java:515)
    2 frames
  6. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1283)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1099)
    2 frames
  7. Android Platform
    NativeStart.main
    1. dalvik.system.NativeStart.main(Native Method)
    1 frame