android.view.WindowLeaked: Activity com.tns.NativeScriptActivity has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView{1a0426a2 G.E..... R.....I. 0,0-684,0} that was originally added here

tip

Close (finish) a Activity before, to ensure that the subsidiary in the above Dialog or PopupWindow have been closed (dismiss).
Is also available at OnCreateDialog (Dialog) to create, let the system to manage the dialog box

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

  • Problem on suspend and resume app.
    via GitHub by ryc16
    ,
  • GitHub comment 2756#248529065
    via GitHub by ryc16
    ,
  • GitHub comment 2756#249790405
    via GitHub by ryc16
    ,
  • Android fails when trying to GET http request
    via Stack Overflow by alexca
    ,
  • Android crash in AsyncTask
    via Stack Overflow by alexca
    ,
  • JSON API Android Parsing tutorial
    via Stack Overflow by Connor
    ,
    • android.view.WindowLeaked: Activity com.tns.NativeScriptActivity has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView{1a0426a2 G.E..... R.....I. 0,0-684,0} that was originally added here at android.view.ViewRootImpl.<init>(ViewRootImpl.java:363) at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:271) at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:85) at android.app.Dialog.show(Dialog.java:298) at com.tns.Runtime.callJSMethodNative(Native Method) at com.tns.Runtime.dispatchCallJSMethodNative(Runtime.java:865) at com.tns.Runtime.callJSMethodImpl(Runtime.java:730) at com.tns.Runtime.callJSMethod(Runtime.java:716) at com.tns.Runtime.callJSMethod(Runtime.java:697) at com.tns.Runtime.callJSMethod(Runtime.java:687) at com.tns.gen.android.app.Application_ActivityLifecycleCallbacks.onActivityResumed(android.app.Application$ActivityLifecycleCallbacks.java) at android.app.Application.dispatchActivityResumed(Application.java:208) at android.app.Activity.onResume(Activity.java:1220) at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1257) at android.app.Activity.performResume(Activity.java:6076) at android.app.ActivityThread.performResumeActivity(ActivityThread.java:2975) at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3017) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2392) at android.app.ActivityThread.access$800(ActivityThread.java:151) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1303) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:135) at android.app.ActivityThread.main(ActivityThread.java:5254) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)

    Users with the same issue

    Unknown visitor1 times, last one,
    lribeiro
    lribeiro1 times, last one,
    Stefan Braune
    Stefan Braune1 times, last one,
    Ábó Szilágyi
    Ábó Szilágyi32 times, last one,
    Sacchi
    Sacchi2 times, last one,
    88 more bugmates