android+trace.txt,android ANR(activity not responding) trace.txt

博客讨论了如何从trace.txt文件中分析Android应用程序的ANR(应用无响应)情况。虽然直接从trace文件中找出ANR原因可能困难,但可以使用崩溃报告API如Crashlytics来追踪和修复应用的ANR和崩溃。建议开发者使用此类工具来监控和改进应用性能。
摘要由CSDN通过智能技术生成

As @Mohamed_AbdAllah has written on his comment "trace.txt is the situation of all running threads when the ANR occurred." Finding the reason of ANR from a thread while ANR occured seems impossible with a trace like you post. If you want to understand what those texts in trace mean, you may be interested in this. (You can get which thread is long running when the ANR occured from trace but this probably does not help you)

Alternatively, if you want to see what type of crashes/ANRs do you have with your andoid application(I assume that you are interested in applications that you developped and published on google play) you can use a crash report api. I use crashlytics for this purpose and it really helps me to fix my applications crashes. When you add this api to you application you can trace all Crashes/ANRs on a web page.

If your aim is understanding how to find reasons of ANRs from trace.txt then I have no idea. But if you need to find and fix your crashes/ANRs, then use a crash report api.

Edit: I assumed you are talking about an application which you've developed and published on google play. If you are talking about an application which is not published to google play yet, @Jeffrey Klardie's suggestion is just what you need. But it is not advised to enable Strictmode on applications at google play.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值