android.view.WindowLeaked: Activity com.example.visit.record.My_Task has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView@4054caf0 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 blogspot.com by Unknown author, 2 years ago
Activity com.example.visit.record.My_Task has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView@4054caf0 that was originally added here
via Stack Overflow by Mona
, 6 months ago
Activity com.example.visit.record.My_Task has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView@4054caf0 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
via Stack Overflow by darthvish
, 2 years ago
Activity com.facebook.FacebookActivity has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView@4054a518 that was originally added here
via Google Groups by duc tran minh, 5 months ago
Activity com.org.scgroup.MainActivity has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView@43cf9838 that was originally added here
android.view.WindowLeaked: Activity com.example.visit.record.My_Task has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView@4054caf0 that was originally added here
at android.view.ViewRoot.(ViewRoot.java:277)
at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:148)
at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:91)
at android.view.Window$LocalWindowManager.addView(Window.java:433)
at android.app.Dialog.show(Dialog.java:288)
at com.example.visit.record.My_Task$GetTaskDetails.onPreExecute(My_Task.java:149)
at android.os.AsyncTask.execute(AsyncTask.java:391)
at com.example.visit.record.My_Task.onCreate(My_Task.java:108)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1093)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1785)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1842)
at android.app.ActivityThread.access$1500(ActivityThread.java:132)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1038)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:143)
at android.app.ActivityThread.main(ActivityThread.java:4268)
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:839)

Users with the same issue

21 times, 9 months ago
6 times, 1 year ago
4 times, 1 year ago
Once, 1 year ago
Once, 2 months ago
74 more bugmates

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