I'm trying to introduce the ACRA lib in my library project. When I set up the String for the toast, I get a "Attribute value must be a constant" error. Please see attached screen-shots
and the R.string.crash_toast_text:
Please note that these lines of code are from here
https://github.com/ACRA/acra/wiki/AdvancedUsage#toast-notification
Based on CommonsWare 18 answer, I made it work. Here is a sample code if anyone gets stuck in the same situation:
final ACRAConfiguration config = ACRA.getNewDefaultConfig(this);
try {
config.setMode(ReportingInteractionMode.TOAST);
} catch (ACRAConfigurationException e) {
e.printStackTrace();
}
config.setResToastText(R.string.crash_toast_text);
ACRA.init(this, config);