本文介绍了用户输入添加到ACRA崩溃报告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

基本上,这就是我要完成的,没有什么我试着似乎工作。每当有一个碰撞,在发送ACRA报告之前,我想显示在对话框一个EditText或东西,它允许用户准确描述她在做什么,当这种情况发生,给我调试一些额外的上下文。我知道我可以加我想使用的任何自定义字段我崩溃报告ACRA.getErrorReporter()。putCustomData(),但问题是搞清楚一种方式来显示其作为应用程序崩溃,她可以进入这一文本的看法。从逻辑上讲,这似乎是不可能的,因为应用程序已经崩溃,这似乎$ P $从实例化任何类型来看pclude我,但我想我会在这里发表看看是否任何人有任何创造性的解决方案之前,我放弃了。

Basically, this is what I'm trying to accomplish and nothing I've tried seems to work. Whenever there's a crash, before the ACRA report is sent, I'd like to display an EditText in a Dialog or something which allows the user to describe exactly what she was doing when this happened and give me some extra context for debugging. I know I can add whatever custom field to my crash report I want using ACRA.getErrorReporter().putCustomData(), but the problem is figuring out a way to display a view in which she could enter this text as the app is crashing. Logically, this seems impossible since the app has crashed, which would seem to preclude me from instantiating any type of view, but I figured I'd post here to see if anyone has any creative solutions before I give up.

推荐答案

在ACRA 4.6.1,您可以配置一个自定义对话框,当你的应用程序崩溃显示。你可以用它来包含一个EditText来捕获数据,并将其推入ACRA自定义数据。

In ACRA 4.6.1 you can configure a custom dialog that it displayed when your app crashes. You could use that to include an EditText to capture the data and push it into the ACRA custom data.

这篇关于用户输入添加到ACRA崩溃报告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-17 09:32
查看更多