Programmatic configuration for sending report via e-mail and dialog

66 views
Skip to first unread message

Tom anMoney

unread,
Oct 20, 2012, 1:42:47 AM10/20/12
to acra-d...@googlegroups.com
I've been pulling my hair out on this for the last 2 hours.

I cannot get the programmatic config to work with sending an e-mail and a pop-up dialog.

The closest I got was:

@ReportsCrashes(formKey = StringUtils.EMPTY, //
mailTo = "mye...@gmail.com")
public class MyApp extends Application
{
            ACRA.init(application);

            ACRAConfiguration configuration = ACRA.getConfig();
            configuration.setResNotifTickerText(R.string.unexpected_error_notification_ticker);
            configuration.setResNotifTitle(R.string.unexpected_error_notification_title);
            configuration.setResNotifText(R.string.unexpected_error_notification_text);
            configuration.setResNotifIcon(R.drawable.icon_notify_error);
            configuration.setResDialogTitle(R.string.app_name_display);
            configuration.setResDialogText(R.string.unexpected_error_warning);
            configuration.setResDialogCommentPrompt(R.string.unexpected_error_comment);
            configuration.setResDialogOkToast(R.string.thank_you);
            configuration.setMode(ReportingInteractionMode.NOTIFICATION);

            ACRA.setConfig(configuration);
}


But this will go to the e-mail app without popping up the dialog that the same static configuration options do.

I've tried many different things, like leaving out the e-mail from the ReportCrashes and putting into code, but that's even worse, I get a dialog, but then just a toast and no e-mail

What am I doing wrong?

Thanks,
Tom

Reply all
Reply to author
Forward
0 new messages