ERROR/WindowManager(***): Activity *** has leaked window com.android.internal.policy.impl.PhoneWind

2023-11-11

在做项目是遇到这个错误

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方法后,该错误解决

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

ERROR/WindowManager(***): Activity *** has leaked window com.android.internal.policy.impl.PhoneWind 的相关文章

随机推荐