Created
November 24, 2011 08:40
-
-
Save nelenkov/1390909 to your computer and use it in GitHub Desktop.
Posting crashes to both Bugsense and ACRA
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@ReportsCrashes(formKey = "your_form_key", mode = ReportingInteractionMode.TOAST) | |
public class BugsenseAcraApp extends Application { | |
@Override | |
public void onCreate() { | |
ACRAConfiguration.setResToastText(R.string.crash_toast_text); | |
ACRA.init(this); | |
String bugsenseUrl = "http://www.bugsense.com/api/acra?api_key=your_api_key"; | |
ACRA.getErrorReporter().addReportSender( | |
new HttpPostSender(bugsenseUrl, null)); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment