CrazyDailyQuestion icon indicating copy to clipboard operation
CrazyDailyQuestion copied to clipboard

2019-10-08:ANR的原理是什么?如果自己检测ANR,你需要怎么做?

Open gys0000 opened this issue 6 years ago • 1 comments

gys0000 avatar Oct 08 '19 01:10 gys0000

杭州-张钊

ANR的原理是什么?

程序长时间无响应

如果自己检测ANR,你需要怎么做?

1.看看是否主线程有耗时操作 2.BroadCastReceiver没有在10秒内完成处理 3.Service中直接执行了耗时的操作

firehell avatar Oct 18 '19 01:10 firehell