本文介绍了ACRA:有时对话框报告及其他时候无声报告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想要做什么:的
What I've done:
What I want help with:
解决方案
I don't know exactly what you want to achieve with your feedback button, but perhaps something like this?
For the configuration of the dialog look at https://github.com/ACRA/acra/wiki/AdvancedUsage#wiki-Dialog. The configuration could also be done in code in the ACRAConfiguration
object if you do not want all this in your annotation.
You can then temporarily change the Reporting mode by using:
ACRAConfiguration config = ACRA.getConfig();
config.setMode(ReportingInteractionMode.DIALOG);
ACRA.setConfig(config);
doWhateverYourFeedbackButtonShouldDo();
config.setMode(ReportingInteractionMode.SILENT);
ACRA.setConfig(config);
where doWhateverYourFeedbackButtonShouldDo()
can be something like:
ACRA.getErrorReporter().handleException(new UserFeedbackException(userFeedback));
这篇关于ACRA:有时对话框报告及其他时候无声报告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!