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

GitHub | alexlittle | 4 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    App crashing on login

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

    NumberFormatException when connection/response timeout values are very large

    GitHub | 3 months ago | alexlittle
    java.lang.RuntimeException: An error occured while executing doInBackground()
  3. 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?
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Creating Activity by using AsyncTask in Android

    Stack Overflow | 5 years ago | rebulanyum
    android.view.WindowManager$BadTokenException: Unable to add window -- token null is not for an application
  6. 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
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