Closed GoogleCodeExporter closed 8 years ago
I second this. I've been using android.os.Debug.isDebuggerConnected() as the
test to prevent initialization when running through the IDE.
If you do this though, you can't call
ErrorReporter.getInstance().handleException() or you will get a null pointer
error, so you need to check for debug mode there as well.
Perhaps we could add an ACRA initialization option such as
activeWhenDebuggerConnected and default it to true (for legacy compatibility)?
Original comment by rupert.r...@gmail.com
on 9 Jan 2012 at 9:35
I agree to add an option to let you disable ACRA in debug/dev mode, but the
default behavior should be to let ACRA activated unless the option is set.
I think I prefer the method described by fcecagno. It disables sending reports
while using your app in development, be it connected to the debugger or not.
Original comment by kevin.gaudin
on 14 Jan 2012 at 12:02
Original comment by kevin.gaudin
on 14 Jan 2012 at 12:02
Actuall I do want our other devs to send us reports. What I do not want is
include acra in the release APK. I want to enable/disable acra by the CI server.
This is not easy because you cannot add/remove the annotation automatically.
My proposal: Configure ACRA not by annotation but by an additional text file.
If the text/config file exists (e.g. acra.config) then use it, otherwise don't.
Then I can strip the JAR from the release build, and I'm almost done. For the
ARCA.init() not to fail, I could include my own JAR that has nothing more than
this method but is empty.
What do you think?
Original comment by peter.v...@gmail.com
on 14 Jan 2012 at 8:44
Original comment by kevin.gaudin
on 7 Sep 2012 at 9:31
Original issue reported on code.google.com by
fceca...@gmail.com
on 25 Sep 2011 at 10:35