-
-
Save fernandogcat/3403830 to your computer and use it in GitHub Desktop.
Posting crashes to both Bugsense and ACRA
This file contains hidden or 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 = "", mode = ReportingInteractionMode.TOAST, resToastText = R.string.acra_crash_toast_text) | |
| public class BugsenseAcraApp extends Application { | |
| private static final String ACRA_FORM_KEY = "YOUR_KEY"; | |
| private static final String BUGSENSE_KEY = "YOUR_KEY"; | |
| @Override | |
| public void onCreate() { | |
| ACRA.getConfig().setFormKey(ACRA_FORM_KEY); | |
| ACRA.init(this); | |
| ACRA.getErrorReporter().addReportSender(new HttpPostSender(String.format("http://www.bugsense.com/api/acra?api_key=%s", BUGSENSE_KEY), null)); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment