java.lang.IllegalStateException: View com.android.internal.policy.impl.PhoneWindow$DecorView@414be448 has already been added to the window manager.

b4x.com | 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

    Program stopping | B4X Community - Android, iOS, desktop, server and IoT programming tools

    b4x.com | 7 months ago
    java.lang.IllegalStateException: View com.android.internal.policy.impl.PhoneWindow$DecorView@414be448 has already been added to the window manager.

    Root Cause Analysis

    1. java.lang.IllegalStateException

      View com.android.internal.policy.impl.PhoneWindow$DecorView@414be448 has already been added to the window manager.

      at android.view.WindowManagerImpl.addView()
    2. Android Platform
      Dialog.show
      1. android.view.WindowManagerImpl.addView(WindowManagerImpl.java:244)
      2. android.view.WindowManagerImpl.addView(WindowManagerImpl.java:215)
      3. android.view.WindowManagerImpl$CompatModeWrapper.addView(WindowManagerImpl.java:140)
      4. android.view.Window$LocalWindowManager.addView(Window.java:537)
      5. android.app.Dialog.show(Dialog.java:278)
      5 frames
    3. anywheresoftware.b4a.debug
      Debug.ErrorCaught
      1. anywheresoftware.b4a.debug.Debug.wait(Debug.java:206)
      2. anywheresoftware.b4a.debug.Debug.reachBP(Debug.java:256)
      3. anywheresoftware.b4a.debug.Debug.ErrorCaught(Debug.java:145)
      3 frames
    4. com.s8mobile
      main._hc_responsesuccess
      1. com.s8mobile.main._hc_responsesuccess(main.java:3724)
      1 frame
    5. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invokeNative(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:511)
      2 frames
    6. anywheresoftware.b4a
      BA$3.run
      1. anywheresoftware.b4a.BA.raiseEvent2(BA.java:170)
      2. anywheresoftware.b4a.BA$3.run(BA.java:296)
      2 frames
    7. Android Platform
      ActivityThread.main
      1. android.os.Handler.handleCallback(Handler.java:605)
      2. android.os.Handler.dispatchMessage(Handler.java:92)
      3. android.os.Looper.loop(Looper.java:137)
      4. android.app.ActivityThread.main(ActivityThread.java:4446)
      4 frames
    8. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invokeNative(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:511)
      2 frames
    9. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
      2 frames
    10. Android Platform
      NativeStart.main
      1. dalvik.system.NativeStart.main(Native Method)
      1 frame