我正在嘗試首次配置ACRA。我已經遵循的基本設置指南:ACRA:配置爲發送郵件報告但沒有收到任何郵件
1.Integrated的ACRA jar文件到我的應用程序
2.Created一類新的擴展應用類別及添加下面的代碼到它:
@ReportsCrashes(formKey = "", // will not be used
mailTo = "[email protected]")
public class MyApplication extends Application
{
@Override
public void onCreate()
{
super.onCreate();
ACRA.init(this);
}
}
3.Made所有必要的修改,清單文件
似乎一切都做得正確,我能夠得到以下的logcat的:
12-21 14:59:10.994: D/ACRA(28728): ACRA is enabled for com.android.demo.notepad1, intializing...
12-21 14:59:11.064: D/ACRA(28728): Using default Mail Report Fields
12-21 14:59:11.064: D/ACRA(28728): Looking for error files in /data/data/com.android.demo.notepad1/files
12-21 14:59:11.074: W/ACRA(28728): **com.android.demo.notepad1 reports will be sent by email (if accepted by user).**
但我不能得到任何郵件:(!
海你有這個問題的任何解決方案。 – Satheesh
@Satheesh如何將崩潰報告發送到多個郵件ID? –
@Karthikeyan在您的應用程序類的上方使用以下代碼@ReportsCrashes(formKey =「」,mailTo =「a @ example.com,b @ example.com,c @ example.com」,mode = ReportingInteractionMode.DIALOG,resToastText = R .string.crash_toast_text,//可選, resDialogText = R.string.crash_dialog_text,resDialogIcon = android.R.drawable.ic_dialog_info,resDialogTitle = R.string.crash_dialog_title,resDialogCommentPrompt = R.string。crash_dialog_comment_prompt ) – Satheesh