android.view.WindowLeaked

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

  • via Stack Overflow by Gopal Samy
    ,
  • Stack trace

    • 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.<init>(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) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:625) 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

    Hiren AmaliyarHiren Amaliyar
    Once,
    filipebatistafilipebatista
    3 times, last one
    SacchiSacchi
    2 times, last one
    Indri YunitaIndri Yunita
    8 times, last one
    winer222winer222
    Once,
    71 more bugmates