android.view.WindowLeaked: Activity has leaked window com.android.internal.p
2013-12-23 10:16
609 查看
android.view.WindowLeaked: Activity has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView{b3e23088 V.E..... R.....ID 0,0-480,243} that was originally added here
这个错误原因是因此一些对话框在activity转向之前,并没有销毁,导致其引用的context为空,因此引发内存泄漏。
在我的代码中原来是:
startActivity(intent);
proDialog.dismiss();
改成了:
proDialog.dismiss();
startActivity(intent);
解决了。
这个错误原因是因此一些对话框在activity转向之前,并没有销毁,导致其引用的context为空,因此引发内存泄漏。
在我的代码中原来是:
startActivity(intent);
proDialog.dismiss();
改成了:
proDialog.dismiss();
startActivity(intent);
解决了。
相关文章推荐
- WindowManager: android.view.WindowLeaked: Activity has leaked window com.android.internal.policy.imp
- android.view.WindowLeaked: Activity com.xty.activity.ActivityMainPage has leaked window
- E/WindowManager: android.view.WindowLeaked: Activity com.xxx.xxx.xxx has leaked window com.android.i
- android.view.WindowLeaked: Activity com.xty.activity.ActivityMainPage has leaked window com.android.
- android.view.WindowLeaked: Activity com.android.browser.AddBookmarkPage has leaked window com.androi
- Android 报错android.view.WindowLeaked.....has leaked window com.android.internal.policy.
- android在学习——activity关闭和dialog.dismiss冲突的解决(Activity has leaked window com.android.internal.policy.impl.PhoneWindow)
- 异常:Activity has leaked window com.android.internal.policy.impl.PhoneWindow
- com.com.adapterdialog.MainActivity has leaked window com.android.internal.policy.impl.PhoneWindow$De
- android在学习——activity关闭和dialog.dismiss冲突的解决(Activity has leaked window com.android.internal.policy.impl.PhoneWindow)
- MainActivity has leaked window com.android.internal.policy.impl.PhoneWindow$
- [Android开发-异常]xxxActivity has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView
- 窗体泄露 android.view.WindowLeaked: Activity XxxActivity has leaked window android.widget.PopupWindow$Po
- Activity has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView
- Activity has leaked window com.android.internal.policy.impl.PhoneWindow
- android Activity has leaked window com.android.internal.policy.impl.PhoneWindow$Deco...
- ERROR/WindowManager(***): Activity *** has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView@*** that
- Activity has leaked window com.android.internal.policy.impl.PhoneWindow$DecorVie
- Android异常-Activity has leaked window com.android.internal.policy.impl.PhoneWindow... was originally
- ERROR/WindowManager(***): Activity *** has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView@*** that was ori