android.view.WindowLeaked

Activity com.example.androidhive.NewProductActivity has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView@40541df8 that was originally added here


Samebug tips1

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

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.


Solutions on the web1150

Solution icon of web
via coderanch.com by Unknown author, 1 year ago
Activity com.example.androidhive.NewProductActivity has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView@40541df8 that was originally added here

Solution icon of web
via coderanch.com by Unknown author, 7 months ago
Activity com.example.androidhive.NewProductActivity has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView@40541df8 that was originally added here

Solution icon of coderanch
via Coderanch by maulidan abdillah, 7 months ago
Activity com.example.androidhive.NewProductActivity has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView@40541df8 that was originally added here

Solution icon of stackoverflow
via Stack Overflow by Unknown author, 1 year ago
Activity com.example.androidhive.NewProductActivity has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView@41782898 that was originally added here

Solution icon of stackoverflow
Activity com.example.androidhive.NewProductActivity has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView@405490f8 that was originally added here

Solution icon of stackoverflow
Activity com.example.androidhive.NewProductActivity has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView{313f48de V.E..... R.....ID 0,0-456,174} that was originally added here

Solution icon of stackoverflow
Activity com.example.androidhive.NewProductActivity has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView@425a2140 that was originally added here at android.view.ViewRootImpl.<init>(ViewRootImpl.java:409)

Solution icon of stackoverflow
Activity com.example.androidhive.NewProductActivity has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView@44f04ae8 that was originally added here at android.view.ViewRoot.<init>(ViewRoot.java:247)

Solution icon of stackoverflow
Activity com.example.androidhive.NewProductActivity has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView@40539530 that was originally added here at android.view.ViewRoot.<init>(ViewRoot.java:258)

Solution icon of stackoverflow
via Stack Overflow by user3312672
, 1 year ago
Activity com.example.androidhive.NewProductActivity has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView@45f60fc0 that was originally added here at android.view.ViewRoot.<init>(ViewRoot.java:247)

Stack trace

  • android.view.WindowLeaked: Activity com.example.androidhive.NewProductActivity has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView@40541df8 that was originally added here at android.view.ViewRoot.<init>(ViewRoot.java:258) 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.example.androidhive.NewProductActivity$CreateNewProduct.onPreExecute(NewProductActivity.java:78) at android.os.AsyncTask.execute(AsyncTask.java:391) at com.example.androidhive.NewProductActivity$1.onClick(NewProductActivity.java:58) at android.view.View.performClick(View.java:2485) at android.view.View$PerformClick.run(View.java:9080) at android.os.Handler.handleCallback(Handler.java:587) at android.os.Handler.dispatchMessage(Handler.java:92) at android.os.Looper.loop(Looper.java:123) at android.app.ActivityThread.main(ActivityThread.java:3683) 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) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597) at dalvik.system.NativeStart.main(Native Method)

Write tip

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

Users with the same issue

Once, 1 day ago
8 times, 2 days ago
3 times, 1 month ago
2 times, 1 month ago
8 times, 2 months ago
72 more bugmates