发送应用程序的logcat的输出到的emailadress [英] Send Logcat output of an App to an EmailAdress

查看:237
本文介绍了发送应用程序的logcat的输出到的emailadress的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在测试我们的应用程序与几个朋友。有时有不抛出异常的一些错误。所以,我真的不知道什么问题了。所以,我认为这将是实现一个菜单项,允许发送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.

这篇关于发送应用程序的logcat的输出到的emailadress的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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