android.view.WindowLeaked: Activity com.telnet.asp.presentation.view.activities.MainActivity has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView{42defcf8 V.E..... R.....ID 0,0-720,351} 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 Stack Overflow by Atenica
, 1 year ago
Activity com.telnet.asp.presentation.view.activities.MainActivity has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView{42defcf8 V.E..... R.....ID 0,0-720,351} that was originally added here
via Stack Overflow by Jonas452
, 10 months ago
Activity (DELETED BY ME).AtividadesActivity has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView{42604ff8 V.E..... R....... 0,0-640,672} that was originally added here
via Stack Overflow by Sandipkumar Savani
, 1 year ago
Activity com.arcil.brio.ui.launch.LaunchActivity has leaked window com.android.internal.policy.PhoneWindow$DecorView{2359dcf V.E...... R.....I. 0,0-1026,660} that was originally added here
via Stack Overflow by Devika
, 7 months ago
Activity com.example.admin.dealerdemo.OrderEntry has leaked window com.android.internal.policy.PhoneWindow$DecorView{dba0674 V.E...... R.....I. 0,0-639,188} that was originally added here
via Stack Overflow by Tony
, 2 years ago
Activity com.example.project.myapplication.GUI.Edit_Staff has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView{42c71d80 V.E..... R......D 0,0-684,324} that was originally added here
via Stack Overflow by Rajesh Vishnani
, 11 months ago
Activity boxyworldreseller.com.boxyworldreseller.Login has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView{322c8153 V.E..... R......D 0,0-1026,483} that was originally added here
android.view.WindowLeaked: Activity com.telnet.asp.presentation.view.activities.MainActivity has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView{42defcf8 V.E..... R.....ID 0,0-720,351} that was originally added here
at android.view.ViewRootImpl.(ViewRootImpl.java)
at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java)
at android.view.WindowManagerImpl.addView(WindowManagerImpl.java)
at android.app.Dialog.show(Dialog.java)
at com.telnet.asp.presentation.view.activities.MainActivity.alertForEnablingGPS(MainActivity.java:392)
at com.telnet.asp.presentation.view.activities.MainActivity.viewAccount(MainActivity.java:143)
at com.telnet.asp.presentation.presenter.AccountPresenter.showAccountInView(AccountPresenter.java:44)
at com.telnet.asp.presentation.presenter.AccountPresenter.access$000(AccountPresenter.java:15)
at com.telnet.asp.presentation.presenter.AccountPresenter$AccountSubscriber.onCompleted(AccountPresenter.java:66)
at rx.observers.SafeSubscriber.onCompleted(SafeSubscriber.java:84)
at rx.internal.operators.OperatorObserveOn$ObserveOnSubscriber.checkTerminated(OperatorObserveOn.java:284)
at android.os.Handler.handleCallback(Handler.java)
at android.os.Handler.dispatchMessage(Handler.java)
at android.os.Looper.loop(Looper.java)
at android.app.ActivityThread.main(ActivityThread.java)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:525)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java)

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.