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

当eclipse爆出这个错误时,很典型的一种情况就是activity和dialog同时显示,你将activity finish()掉了,但是忘记dismiss() dialog或者先finish()的activity,后dismiss()的dialog。 
这个错误虽然不影响程序运行,但是看着自己辛辛苦苦写的东西,eclipse居然报这么多的错误,相信大家都会不爽。所以,赶紧在activity finish()之前,将dialog  dismiss()掉吧!!

你可能感兴趣的:(Activity has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView)