ACRA与Android:如何执行code坠毁报道之前 [英] ACRA with android: How to execute code before crash is reported

查看:122
本文介绍了ACRA与Android:如何执行code坠毁报道之前的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的ACRA woth我的Andr​​oid应用程序。我的问题是,当碰撞发生时,我怎么能保证我执行了一些code崩溃报告之前。我的意思是我想补充一些自定义的变量时,会发生崩溃,所以我知道什么状态的应用程序是?

I am using ACRA woth my android app. My question is, when a crash happens, how can I make sure I execute some code before the crash is reported. I mean I would like to add some custom variables when the crash happens so I know what state the app was in?

请帮忙

感谢您

推荐答案

如实施自己的发件人的此处。它可以简单地周围的一些现有的发件人的包装,并在转发发送功能存在。

Implement your own sender as described here. It can be simply a wrapper around some existing sender, forwarding the sending functionality there.

在发送code,你其实可以发送报告之前采取任何特殊操作。

Inside the sender code, you can take any special actions before actually sending the report.

这篇关于ACRA与Android:如何执行code坠毁报道之前的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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