发送应用程序的logcat的输出到的emailadress应用程序、logcat、emailadress

2023-09-12 07:56:18 作者:我的悲喜都是你

我们正在测试我们的应用程序与几个朋友。有时有不抛出异常的一些错误。所以,我真的不知道什么问题了。所以,我认为这将是实现一个菜单项,允许发送logcat的输出到E-mail地址是一个好主意,这样我们就可以检查日志。

We are now testing our application with a few friends. Sometimes there are some errors which don't throw an exception. So I don't really know whats the problem was. So I thought it would be a good idea to implement a menu item which allows to send the logcat output to a e-mail address, so that we can examine the log.

不幸的是我没有找到一个提示,在网上如何提取从手机logcat的。如何发送电子邮件不应该是问题。

Unfortunately I didn't find a hint in the Internet how to extract the logcat from a phone. How to send an email shouldn't be the problem.

推荐答案

看的 Android的日志收集的,因为它没有你想要做什么。

Look at android-log-collector, as it does what you are trying to do.

这是不可能收集任意LogCat中数据的Andr​​oid 4.1。从来没有这样做的记载和支持的方法,以及无证/不支持这样的被锁定在果冻豆。为了你自己的崩溃,你最好使用一个崩溃日志库,如担任 ACRA 。

It is not possible to collect arbitrary LogCat data as of Android 4.1. There was never a documented and supported way of doing that, and the undocumented/unsupported way was locked down in Jelly Bean. For your own crashes, you are better served using a crash logging library, like ACRA.