Question

I have an application that send me user_email = null when it shouldn't. I don't understant it, and can't reproduce it in local. I would like to use acra reporting to report system state when user_email = null.

I know how to write custom variable:

ACRA.getErrorReporter().putCustomData("myVariable", myVariable);

but I don't know how to generate report if var is null, even if the system doesn't crash ( in my case my null variable does not crash the system)

Was it helpful?

Solution

if ( user_email == null) {
  ACRA.getErrorReporter().handleSilentException(null);
}

See https://github.com/ACRA/acra/wiki/AdvancedUsage#wiki-Sending_reports_for_caught_exceptions

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top