android anr 输出原理

来源:互联网 发布:win7网络共享密码取消 编辑:程序博客网 时间:2024/05/08 05:16

刚有同事问,anr 为啥搜 anr in

是啊 

看看是咋输出的吧 

framwork ----search  not responding .....

发现 ActivityManagerService 里面有一个触发的地方 

appNotRespondingViaProvider()

----AppError.appNotResponding()

流程都在里面

注释的也很到位。

里面拼接的几个关键字 可以方便查询

"ANR in " ,"Reason: "

等。遇到问题再来查具体实现吧




原创粉丝点击