如何从我的 Android 应用程序获取崩溃数据?

如何从我的 Android 应用程序获取崩溃数据?

问题描述:

如何从我的 Android 应用程序获取崩溃数据(至少是堆栈跟踪)?至少在我自己的设备上工作时通过电缆检索,但理想情况下是从我的应用程序的任何实例中运行,以便我可以改进它并使其更可靠.

How can I get crash data (stack traces at least) from my Android application? At least when working on my own device being retrieved by cable, but ideally from any instance of my application running on the wild so that I can improve it and make it more solid.

你可以试试 ACRA(Application Crash Report forAndroid) 库:

ACRA 是一个使 Android 应用程序能够自动将其崩溃报告发布到 GoogleDoc 表单的库.它面向 Android 应用程序开发人员,帮助他们在应用程序崩溃或出现错误时从他们的应用程序中获取数据.

ACRA is a library enabling Android Application to automatically post their crash reports to a GoogleDoc form. It is targetted to android applications developers to help them get data from their applications when they crash or behave erroneously.

它很容易安装在您的应用中,高度可配置,并且不需要您在任何地方托管服务器脚本...报告被发送到 Google Doc 电子表格!

It's easy to install in your app, highly configurable and don't require you to host a server script anywhere... reports are sent to a Google Doc spreadsheet !