ERROR/WindowManager(***): Activity *** has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView@*** that
2012-03-02 12:50
525 查看
本文 2011-05-27 09:41 发表于本人CSDN 博客 http://blog.csdn.net/lonkiss/article/details/6449284现迁移至博客园
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
本文原创 转载请注明出处
在做项目是遇到这个错误
google : WindowManager: Activity has leaked window
在stackoverflow.com(链接http://stackoverflow.com/questions/2850573/activity-has-leaked-window-that-was-originally-added)中找到答案
最佳答案是 You're trying to show dialog after you're exit activity ( your thread came back ). THere are like 5 question with same thing in the last two weeks
另外一个给我帮助的回答是
看到以上回答后,我检查代码。发现在对话框中直接调用了finish方法,在finish前加了dismiss方法后,该错误解决。
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
本文原创 转载请注明出处
在做项目是遇到这个错误
google : WindowManager: Activity has leaked window
在stackoverflow.com(链接http://stackoverflow.com/questions/2850573/activity-has-leaked-window-that-was-originally-added)中找到答案
最佳答案是 You're trying to show dialog after you're exit activity ( your thread came back ). THere are like 5 question with same thing in the last two weeks
另外一个给我帮助的回答是
看到以上回答后,我检查代码。发现在对话框中直接调用了finish方法,在finish前加了dismiss方法后,该错误解决。
相关文章推荐
- ERROR/WindowManager(***): Activity *** has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView@*** that was ori
- ERROR/WindowManager(***): Activity *** has leaked window com.android.internal.policy.impl.PhoneWind
- [Android开发-异常]xxxActivity has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView
- Activity has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView
- Android排错:has leaked window com.android.internal.policy.impl.PhoneWindow$ that was or
- Android排错:has leaked window com.android.internal.policy.impl.PhoneWindow$ that was originally added
- Android排错: has leaked window com.android.internal.policy.impl.PhoneWindow$ that was originally added here
- Android排错:has leaked window com.android.internal.policy.impl.PhoneWindow$ that was originally added
- MainActivity has leaked window com.android.internal.policy.impl.PhoneWindow$
- Android排错:has leaked window com.android.internal.policy.impl.PhoneWindow$ that was originally added
- Android排错:has leaked window com.android.internal.policy.impl.PhoneWindow$ that was originally added
- Activity has leaked window com.android.internal.policy.impl.PhoneWindow
- Android排错:has leaked window com.android.internal.policy.impl.PhoneWindow$ that was originally added
- android在学习——activity关闭和dialog.dismiss冲突的解决(Activity has leaked window com.android.internal.policy.impl.PhoneWindow)
- has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView
- Activity has leaked window com.android.internal.policy.impl.PhoneWindow$DecorVie
- Android排错:has leaked window com.android.internal.policy.impl.PhoneWindow$ that was originally added here
- Android排错:has leaked window com.android.internal.policy.impl.PhoneWindow$ that was originally added here
- android在学习——activity关闭和dialog.dismiss冲突的解决(Activity has leaked window com.android.internal.policy.impl.PhoneWindow)
- Android排错:has leaked window com.android.internal.policy.impl.PhoneWindow$ that was originally added