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

Google Groups | Dhaval Gondaliya | 3 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Caused by: java.lang.RuntimeException: Response code = 403, msg = Forbidden

    Google Groups | 3 years ago | Dhaval Gondaliya
    android.view.WindowLeaked: Activity com.updatetest.MainActivity has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView@4055f730 that was originally added here
  2. 0

    Android: Fatal Error: AsyncTask #1

    Stack Overflow | 2 years ago | Gopal Samy
    android.view.WindowLeaked: Activity com.example.androidhive.AllProductsActivity has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView@4052e160 that was originally added here
  3. 0

    android activity has leaked window com.android.internal.policy.impl.phonewindow$decorview Issue

    Stack Overflow | 5 years ago | Ponmalar
    android.view.WindowLeaked: Activity exp.app.NetErrorPage has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView@40534a18 that was originally added here
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Activity has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView

    Stack Overflow | 3 years ago | Maximus
    android.view.WindowLeaked: Activity com.mad.restaurantfinderrm.TabsViewPagerFragmentActivity has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView{41891c88 V.E..... R.....I. 0,0-240,147} that was originally added here at android.view.ViewRootImpl.<init>(ViewRootImpl.java:345)
  6. 0

    Dialog - Activity leak when orientation Change

    GitHub | 2 years ago | candeiasdan
    android.view.WindowLeaked: Activity com.scrive.pose_sign.MainActivity has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView{42102238 G.E..... R.....ID 0,0-896,540} that was originally added here
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. 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>()
  2. Android Platform
    Dialog.show
    1. android.view.ViewRoot.<init>(ViewRoot.java:263)
    2. android.view.WindowManagerImpl.addView(WindowManagerImpl.java:148)
    3. android.view.WindowManagerImpl.addView(WindowManagerImpl.java:91)
    4. android.view.Window$LocalWindowManager.addView(Window.java:424)
    5. android.app.Dialog.show(Dialog.java:241)
    5 frames
  3. com.updatetest
    MainActivity$getdatafromapi.onPreExecute
    1. com.updatetest.MainActivity$getdatafromapi.onPreExecute(MainActivity.java:120)
    1 frame
  4. Android Platform
    AsyncTask.execute
    1. android.os.AsyncTask.execute(AsyncTask.java:391)
    1 frame
  5. com.updatetest
    MainActivity.onCreate
    1. com.updatetest.MainActivity.onCreate(MainActivity.java:64)
    1 frame
  6. Android Platform
    ActivityThread.main
    1. android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
    2. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1615)
    3. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1667)
    4. android.app.ActivityThread.access$1500(ActivityThread.java:117)
    5. android.app.ActivityThread$H.handleMessage(ActivityThread.java:935)
    6. android.os.Handler.dispatchMessage(Handler.java:99)
    7. android.os.Looper.loop(Looper.java:130)
    8. android.app.ActivityThread.main(ActivityThread.java:3687)
    8 frames
  7. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invokeNative(Native Method)
    2. java.lang.reflect.Method.invoke(Method.java:507)
    2 frames
  8. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:867)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:625)
    2 frames
  9. Android Platform
    NativeStart.main
    1. dalvik.system.NativeStart.main(Native Method)
    1 frame