android.view.WindowLeaked: Activity com.example.android.xyztouristattractions.ui.AttractionListActivity has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView{17de67d1 V.E..... R....... 0,0-1080,998} 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 tomlear
, 1 year ago
Activity com.example.android.xyztouristattractions.ui.AttractionListActivity has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView{17de67d1 V.E..... R....... 0,0-1080,998} that was originally added here
via Stack Overflow by eminem
, 2 years ago
Activity com.cursedchico.IstanbulEventPool.MainActivity has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView{41e17480 V.E..... R.....I. 0,0-488,216} that was originally added here
via Stack Overflow by Exprove
, 2 years ago
Activity info.androidhive.tabsswipe.MainActivity has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView{b3126950 V.E..... R......D 0,0-456,144} that was originally added here
via GitHub by marmistrz
, 1 year ago
Activity ru.meefik.linuxdeploy.SettingsActivity has leaked window com.android.internal.policy.PhoneWindow$DecorView{8a9a0aa V.E...... R......D 0,0-1026,348} that was originally added here
via GitHub by HanteIsHante
, 8 months ago
Activity cc.netpas.android_firewall.activities.BuyQuotaActivity has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView{41d8e878 V.E..... R.....ID 0,0-600,325} that was originally added here
via Stack Overflow by Unknown author, 2 years ago
Activity com.glam.Login has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView{53067a18 V.E..... R......D 0,0-684,192} that was originally added here
android.view.WindowLeaked: Activity com.example.android.xyztouristattractions.ui.AttractionListActivity has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView{17de67d1 V.E..... R....... 0,0-1080,998} 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.example.android.xyztouristattractions.ui.AttractionListActivity.showDebugDialog(AttractionListActivity.java:168)
at com.example.android.xyztouristattractions.ui.AttractionListActivity.onOptionsItemSelected(AttractionListActivity.java:95)
at android.support.v7.app.AppCompatActivity.onMenuItemSelected(AppCompatActivity.java:147)
at android.support.v7.internal.view.WindowCallbackWrapper.onMenuItemSelected(WindowCallbackWrapper.java:100)
at android.support.v7.app.AppCompatDelegateImplV7.onMenuItemSelected(AppCompatDelegateImplV7.java:583)
at android.support.v7.internal.view.menu.MenuBuilder.dispatchMenuItemSelected(MenuBuilder.java:811)
at android.support.v7.internal.view.menu.MenuItemImpl.invoke(MenuItemImpl.java:153)
at android.support.v7.internal.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:958)
at android.support.v7.internal.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:948)
at android.widget.AdapterView.performItemClick(AdapterView.java:305)
at android.widget.AbsListView.performItemClick(AbsListView.java:1146)
at android.widget.AbsListView$PerformClick.run(AbsListView.java:3053)
at android.widget.AbsListView$3.run(AbsListView.java:3860)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
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, 2 months ago
5 times, 3 months ago
Once, 3 months ago
4 times, 3 months ago
64 times, 3 months ago

Write tip

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