Skip to content

Instantly share code, notes, and snippets.

@nelenkov
Created November 24, 2011 08:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save nelenkov/1390909 to your computer and use it in GitHub Desktop.
Save nelenkov/1390909 to your computer and use it in GitHub Desktop.
Posting crashes to both Bugsense and ACRA
@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