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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
via github.com by Unknown author

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

,
via Stack Overflow by Alex Volovoy

Occurs due to dialogs which are not dismissed properly and if your activity has been destroyed but your dialog is still showing. Dismiss on activity's onDestroy().

if (dialog != null) {
        dialog.dismiss();
        dialog = null;
}

Solutions on the web

via GitHub by ryc16
, 1 year ago
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
via GitHub by ryc16
, 1 year ago
Activity com.tns.NativeScriptActivity has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView{3bba980a G.E..... R.....ID 0,0-1026,290} that was originally added here
via GitHub by ryc16
, 1 year ago
Activity com.tns.NativeScriptActivity has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView{ae9758a0 G.E..... R.....ID 0,0-693,246} that was originally added here
via programwith.com by Unknown author, 1 year ago
Activity test.dsi.decathnavigation.Web_view_demo has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView{420eb868 V.E..... R......D 0,0-513,144} that was originally added here
via Stack Overflow by PramodK
, 2 years ago
Activity test.dsi.decathnavigation.Web_view_demo has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView{420eb868 V.E..... R......D 0,0-513,144} that was originally added here
via Stack Overflow by Harindra Singh
, 2 years ago
Activity cdap.park.Login has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView{41e1cb58 V.E..... R......D 0,0-684,192} that was originally added here
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.(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)

Users with the same issue

Once, 1 month ago
5 times, 2 months ago
Once, 2 months ago
4 times, 2 months ago
64 times, 2 months ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.