You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
是的,最开始以为我的代码在7.0上有问题,就在寻到了您这点赞量较高的项目上测试,神奇,竟然也有这种问题...
A onDestory()方法延迟执行时间和B中内容加载量正正比,最长10s,目前在锤子和华为7.0的手机上有测试,均为这个现象
影响:A的方法的取消、对象清空会收到严重干扰,当然这是个人习惯。
**问题:**一般都会在onDestory()方法中执行释放内容,但在华为android7.0的手机上面,就会出现onDestory()延迟执行,在自个项目中做了一些数据统计,得出的结论是(AActivity--> BActivity,当B中需要执行大量方法时,A onDestory()会延迟执行(最长10s));
在您的项目启动页中也测试了一下,会延迟执行3s左右;
代码:
`@Override
protected void onPause() {
super.onPause();
time = System.currentTimeMillis();
}
The text was updated successfully, but these errors were encountered: