2013-06-28 107 views
0

我想添加發送給我的故障轉儲我的電子郵件支持使用acra。 我相信有一個選項可以顯示重新啓動應用程序的對話框。ACRA對話框和電子郵件目的地崩潰android

下面是我reportCrash

@ReportsCrashes(formKey="dGVacG0ydVHnaNHjRjVTUTEtb3FPWGc6MQ", 
mode = ReportingInteractionMode.DIALOG, 
customReportContent = { ReportField.APP_VERSION_CODE, ReportField.APP_VERSION_NAME, 
     ReportField.ANDROID_VERSION, ReportField.PHONE_MODEL, ReportField.CUSTOM_DATA, 
     ReportField.STACK_TRACE, ReportField.LOGCAT },     

resToastText = R.string.crash_toast_text, // optional, displayed as soon as the crash occurs, before collecting data which can take a few seconds 
resDialogText = R.string.crash_dialog_text, 
resDialogIcon = android.R.drawable.ic_dialog_info, //optional. default is a warning sign 
resDialogTitle = R.string.crash_dialog_title, // optional. default is your application name 
resDialogCommentPrompt = R.string.crash_dialog_comment_prompt, // optional. when defined, adds a user text field input with this text resource as a label 
resDialogOkToast = R.string.crash_dialog_ok_toast // optional. displays a Toast message when the user accepts to send a report. 
) 

回答

0

我不認爲這是顯示在您的應用程序的重新啓動的對話框中的一個選項,它通常當應用程序被殺害之前發生崩潰顯示。但是你在那裏的配置看起來對話框顯示是正確的。

警告一句話,使用Google文檔來捕獲崩潰報告現在已被棄用。你應該尋找像Acralyzer一樣的另一個崩潰報告。

+0

如果我添加一個mailto選項,我沒有看到準備或發送電子郵件的任何操作。我只是感謝你 – mSO

相關問題