org.acra.config.ACRAConfigurationException Java Examples

The following examples show how to use org.acra.config.ACRAConfigurationException. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: App.java    From video-transcoder with GNU General Public License v3.0 6 votes vote down vote up
private void initACRA()
{
    try
    {
        final ACRAConfiguration acraConfig = new ConfigurationBuilder(this)
                .setReportSenderFactoryClasses(reportSenderFactoryClasses)
                .setBuildConfigClass(BuildConfig.class)
                .build();
        ACRA.init(this, acraConfig);
    }
    catch (ACRAConfigurationException ace)
    {
        ErrorActivity.reportError(this, ace, null, ErrorActivity.ErrorInfo.make(UserAction.SOMETHING_ELSE, "none",
                "Could not initialize ACRA crash report", R.string.app_ui_crash));
    }
}
 
Example #2
Source File: GeopaparazziApplication.java    From geopaparazzi with GNU General Public License v3.0 6 votes vote down vote up
@Override
protected void attachBaseContext(Context base) {
    super.attachBaseContext(base);
    try {

        ACRAConfiguration config = new ConfigurationBuilder(this) //
                .setMailTo(mailTo)//
                .setCustomReportContent(//
                        ReportField.APP_VERSION_CODE, ReportField.APP_VERSION_NAME, //
                        ReportField.ANDROID_VERSION, ReportField.PHONE_MODEL, //
                        ReportField.CUSTOM_DATA, ReportField.STACK_TRACE, ReportField.LOGCAT) //
                .setResToastText(R.string.crash_toast_text)//
                .setLogcatArguments("-t", "400", "-v", "time", "GPLOG:I", "*:S") //
                .setReportingInteractionMode(ReportingInteractionMode.TOAST)//
                .build();


        ACRA.init(this, config);
    } catch (ACRAConfigurationException e) {
        e.printStackTrace();
    }
}
 
Example #3
Source File: AppController.java    From Instagram-Profile-Downloader with MIT License 5 votes vote down vote up
private void initACRA() {
    try {
        final ACRAConfiguration acraConfig = new ConfigurationBuilder(this)
                .setReportSenderFactoryClasses(reportSenderFactoryClasses)
                .setBuildConfigClass(BuildConfig.class)
                .build();
        ACRA.init(this, acraConfig);
    } catch (ACRAConfigurationException ace) {
        ace.printStackTrace();
        ErrorActivity.reportError(this,
                ace,
                null,
                null,
                ErrorActivity.ErrorInfo.make(UserAction.SOMETHING_ELSE, "none",
                        "Could not initialize ACRA crash report", R.string.app_ui_crash));
    }
}