android.view.WindowLeaked: Activity com.updatetest.MainActivity has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView@4055f730 that was originally added here

If you like a tip written by other Samebug users, mark is as helpful! Marks help our algorithm provide you better solutions and also help other users.
tip

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

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

  • 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)

Users with the same issue

Sacchi
Sacchi2 times, last one,
Hiren Amaliyar
Hiren Amaliyar1 times, last one,
Indri Yunita
Indri Yunita8 times, last one,
winer222
winer2221 times, last one,
Unknown visitor1 times, last one,
70 more bugmates