2013-08-21 59 views
0

配置郵件和獲取郵件,但該對話框中的用戶註釋不會添加到郵件正文,我ACRA的配置看起來像這樣ACRA的mailto選項不包括用戶註釋字段

@ReportsCrashes(formKey="dGVacG0ydVHnaNHjRjVTUTEtb3FPWGc6MQ", 
mode = ReportingInteractionMode.DIALOG, 
mailTo = "[email protected]", 
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

我的答案是否解決了您的問題?只是好奇它 – AitorTheRed

回答

1

你缺少這場customReportContent:

ReportField.USER_COMMENT 

您可以檢查所有你能在here使用的字段。

+1

嗨,我有同樣的問題,OP。當我添加USER_COMMENT時,它返回null。你有沒有遇到這個問題? – hadez30