当前位置: 代码迷 >> Android >> has leaked window com.android.internal.policy.impl.PhoneWindow$ that was originally added here错误解决
  详细解决方案

has leaked window com.android.internal.policy.impl.PhoneWindow$ that was originally added here错误解决

热度:182   发布时间:2016-04-27 23:34:34.0
has leaked window com.android.internal.policy.impl.PhoneWindow$ that was originally added here异常解决

has leaked window com.android.internal.policy.impl.PhoneWindow$ that was originally added here异常解决


异常原因:强制当前Activity被关闭时却没能及时的调用dismiss来解除对ProgressDialog等的引用


解决方式:重写Activity的onDestroy方法,在方法中调用dismiss来解除对ProgressDialog等的引用


版权声明:本文为博主原创文章,未经博主允许不得转载。

  相关解决方案