java.lang.RuntimeException: android.view.WindowManager$BadTokenException: Unable to add window -- token android.os.BinderProxy@42134a48 is not valid; is your activity running?

GitHub | PongPloy2016 | 7 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

    Fatal Exception: java.lang.RuntimeException: android.view.WindowManager$BadTokenException

    GitHub | 7 months ago | PongPloy2016
    java.lang.RuntimeException: android.view.WindowManager$BadTokenException: Unable to add window -- token android.os.BinderProxy@42134a48 is not valid; is your activity running?
  2. 0

    Realm.IO - Could not map Json

    Stack Overflow | 2 years ago | Joe Richard
    java.lang.RuntimeException: io.realm.exceptions.RealmException: Could not map Json at com.loopj.android.http.AsyncHttpResponseHandler.onUserException(AsyncHttpResponseHandler.java:313) at com.loopj.android.http.AsyncHttpResponseHandler.handleMessage(AsyncHttpResponseHandler.java:404) at com.loopj.android.http.AsyncHttpResponseHandler$ResponderHandler.handleMessage(AsyncHttpResponseHandler.java:184) at android.os.Handler.dispatchMessage(Handler.java:110) at android.os.Looper.loop(Looper.java:193) at android.app.ActivityThread.main(ActivityThread.java:5292) 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:824) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:640) at dalvik.system.NativeStart.main(Native Method) Caused by: io.realm.exceptions.RealmException: Could not map Json at io.realm.Realm.createAllFromJson(Realm.java:680) at io.realm.Realm.createAllFromJson(Realm.java:732) at uz.sunet.wm.data.Api$1.onSuccess(Api.java:61) at com.loopj.android.http.AsyncHttpResponseHandler.handleMessage(AsyncHttpResponseHandler.java:360)

    Root Cause Analysis

    1. java.lang.RuntimeException

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

      at com.loopj.android.http.AsyncHttpResponseHandler.onUserException()
    2. android-async-http Library
      AsyncHttpResponseHandler$ResponderHandler.handleMessage
      1. com.loopj.android.http.AsyncHttpResponseHandler.onUserException(AsyncHttpResponseHandler.java:304)
      2. com.loopj.android.http.AsyncHttpResponseHandler.handleMessage(AsyncHttpResponseHandler.java:395)
      3. com.loopj.android.http.AsyncHttpResponseHandler$ResponderHandler.handleMessage(AsyncHttpResponseHandler.java:510)
      3 frames
    3. Android Platform
      ActivityThread.main
      1. android.os.Handler.dispatchMessage(Handler.java:102)
      2. android.os.Looper.loop(Looper.java:136)
      3. android.app.ActivityThread.main(ActivityThread.java:5017)
      3 frames
    4. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invokeNative(Method.java)
      2. java.lang.reflect.Method.invoke(Method.java:515)
      2 frames
    5. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
      2 frames
    6. Android Platform
      NativeStart.main
      1. dalvik.system.NativeStart.main(NativeStart.java)
      1 frame