android.view.WindowLeaked: Activity com.updatetest.MainActivity has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView@4055f730 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

Solutions on the web

via Google Groups by Dhaval Gondaliya, 1 year ago
Activity com.updatetest.MainActivity has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView@4055f730 that was originally added here
via Google Groups by Dhaval Gondaliya, 5 months ago
Activity com.updatetest.MainActivity has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView@4055f730 that was originally added here
via Stack Overflow by mary
, 2 years ago
Activity com.danlconsulting.testing.MainActivity has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView@40531e60 that was originally added here
via Google Groups by Ted, 3 months ago
Activity com.rerware.android.MyBackupPro.MyBackup has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView@47b48ab8 that was originally added here
via Google Groups by Kevin Steen, 5 months ago
Activity org.servalproject.wizard.Wizard has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView@40537cb0 that was originally added here
via Stack Overflow by Unknown author, 2 years ago
Activity com.example.mikhail.testfsq.MyActivity has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView@405b6110 that was originally added here
android.view.WindowLeaked: Activity com.updatetest.MainActivity has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView@4055f730 that was originally added here
at android.view.ViewRoot.(ViewRoot.java:263)
at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:148)
at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:91)
at android.view.Window$LocalWindowManager.addView(Window.java:424)
at android.app.Dialog.show(Dialog.java:241)
at com.updatetest.MainActivity$getdatafromapi.onPreExecute(MainActivity.java:120)
at android.os.AsyncTask.execute(AsyncTask.java:391)
at com.updatetest.MainActivity.onCreate(MainActivity.java:64)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1615)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1667)
at android.app.ActivityThread.access$1500(ActivityThread.java:117)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:935)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:130)
at android.app.ActivityThread.main(ActivityThread.java:3687)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:867)

Users with the same issue

3 times, 10 months ago
7 times, 1 year ago
2 times, 1 year ago
3 times, 1 year ago
21 times, 8 months ago
74 more bugmates

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