Skip to content

Instantly share code, notes, and snippets.

@nelenkov
Created November 24, 2011 08:40
Show Gist options
  • Select an option

  • Save nelenkov/1390909 to your computer and use it in GitHub Desktop.

Select an option

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