如何登录难找到Android的崩溃? [英] How to log hard finding crash in Android?

查看:139
本文介绍了如何登录难找到Android的崩溃?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个应用程序,它崩溃几乎每天一次,我已经为了挽救崩溃日志使用默认的未捕获异常处理程序

I've an app which crash almost once a day, and I've used the default uncaught exception handler in order to save the crash log

例如

Thread.setDefaultUncaughtExceptionHandler(new CustomExceptionHandler("/sdcard/crash"));

然而,对于正常的崩溃,如计算器(故意),它可以被记录下来,但我的错误就永远不会被记录下来。 我想这是因为崩溃是一种正常的活动范围之内提出。 (是的,当应用程序在后台崩溃发生)

我也试着通过将设备连接到我的计算机和记录的logcat了亚行logcat> log.txt的,然而,亚行将超时一段时间(不连接,直到我再次重新插上ADB设备的回报)和日志记录将停止。

I've also tried to connect the device to my computer and log the logcat out via adb logcat > log.txt, however, the adb will timeout for a while (adb device return not connected until I re-plug it again) and the logging will stop.

那么,还有没有其他办法,我可以用它来记录和识别我的错误?

So, are there any other way I can use to log and identify my bug?

更新:对于那些暗示其他远程登录工具,我想说的是,我已经使用是,setDefaultUncaughtExceptionHandler 来保存例外到本地文件,是否有任何异常,该工具可以帮助,但不是我当前的方法?我使用的调试,不能用于生产。

Update: For those suggesting other remote logging tools, I want to say that I've already using setDefaultUncaughtExceptionHandler to save the exception to a local file, are there any exception that the tools can help but not my current method? I use for debug only, not for production

推荐答案

是我的兄弟!

您可以使用CrashAnalytics

You can use CrashAnalytics

只要进入这个链接 https://crashlytics.com ,然后把你的邮件编号进行验证后得到批准邮件你可以用你的电子邮件ID注册和使用这些服务,你将能够获得所有的崩溃和设备信息太。对于审批将需要时间为一到两天

Just go on this link https://crashlytics.com and put you mail id for verification and after getting approval mail you can register with your email id and use these service and you will able to get all the crashes and device information too .For Approval it will take time for one to two days

我希望这会帮助你。

这是永久性的解决方案,使飞机坠毁log.You还可以在谷歌上载构建玩,你可以指定多个电子邮件获取崩溃日志以供参考后,即可获取崩溃日志。

It is permanent solution to get the crash log.You can also get the crash log after uploading the build on google play and you can assign more than one email to get the crash log for reference.

这篇关于如何登录难找到Android的崩溃?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆