How to programmatically change the ACRA interaction mode setting

I am implementing ACRA in my Android app. I would like the interaction mode to be turned off by default, but if I see that a new version of my application is available, the “Toast” user will update his copy of the application after a message failure.

However, it seems that the ACRA interaction mode should be hardcoded and loaded once after starting the application. Is there any way to set the mode at this point not through hard encoding? For instance. I am looking to control the "mode =" setting, which is copied below.

@ReportsCrashes(formKey = "xxxxxxxxxxxxxxxx", 
                mode = ReportingInteractionMode.TOAST,
                resToastText = R.string.crash_toast_text)
public class MyApplication extends Application ...

I see that ACRA Issue 85 has added resource setters for Toast parameters, but does it also have the ability to customize the interaction mode?

+3
source share
1 answer

Maybe this? I have not tried, but it seems useful (in the beginning)

http://www.java2s.com/Open-Source/Android/App/acra/org/acra/ErrorReporter.java.htm

0
source

All Articles