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 tips

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 github.com by Unknown author

Solutions on the web

Solution icon of coderanch
via Coderanch by maulidan abdillah, 9 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 web
via coderanch.com by Unknown author, 9 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 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 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 github
via GitHub by jonkerj
, 1 year ago
Activity carnero.cgeo.cgeodetail has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView@408a3e98 that was originally added here

Solution icon of github
via GitHub by chr15m
, 1 year ago
Activity com.nutomic.syncthingandroid.WebGuiActivity has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView@4054ea30 that was originally added here

Solution icon of github
Activity cgeo.geocaching.cgeocaches has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView@40b44ed0 that was originally added here

Solution icon of appcelerator
via Appcelerator JIRA by Eric Merriman , 1 year ago
Activity org.appcelerator.titanium.TiActivity has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView@40fbb588 that was originally added here

Solution icon of appcelerator
via Appcelerator JIRA by Eric Merriman , 1 year ago
Activity org.appcelerator.titanium.TiActivity has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView@40fbb588 that was originally added here

Solution icon of stackoverflow
Activity exp.app.NetErrorPage has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView@40534a18 that was originally added here

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

5 times, 1 week ago
4 times, 2 weeks ago
64 times, 3 weeks ago
2 times, 1 month ago
3 times, 3 months ago
74 more bugmates