ACRA: configured to send the report by mail, but does not receive any mail

I am trying to configure ACRA for the first time. I followed the basic installation guide:

1. Integrated the acra jar file into my application

2. Created a new class that extends the application class, and added the following code to it:

@ReportsCrashes(formKey = "", // will not be used mailTo = " mymailId@gmail.com ") public class MyApplication extends Application { @Override public void onCreate() { super.onCreate(); ACRA.init(this); } } 

3.Remove all necessary changes to the manifest file

Everything seems to be done right, I can get below in 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).** 

But I can not get the mail :(!

+4
source share
3 answers

As far as I know, you must use the mailTo function to send email. If an error occurs, another mail client (for example, Gmail.apk) must be open to process the crash report and send e-mail. Thus, the email client will open the error, and we need the user to click the submit button.

+2
source

Although a little late, someone might find it useful anyway ...

I had at least a similar problem with ACRA 4.5.0, which I was able to solve as soon as all other configuration parameters were set. This means - although partially indicated as optional; I needed to give a value for the following parameters (in @ReportsCrashes annotation)

  • resDialogText = R.string.crash_dialog_text, // Text to display upon crash
  • resDialogIcon = android.R.drawable.ic_dialog_info, //optional (apparently not). default is a warning sign
  • resDialogTitle = R.string.crash_dialog_title, // optional (apparently not). default is your application name
  • resDialogCommentPrompt = R.string.crash_dialog_comment_prompt, // optional (apparently not). when defined, adds a user text field input with this text resource as a label
  • resDialogOkToast = R.string.crash_dialog_ok_toast // optional (apparently not). displays a Toast message when the user accepts to send a report.

Although I set mode = ReportingInteractionMode.DIALOG, which could be the source of my problems at least.

+1
source

did not use the "mailTo" field, used only @ReportsCrashes(formKey = "formkey")
Make sure that you correctly entered the form key from Google. And if you fail, you will receive a report in the excel excel file. Also, make sure you add the Internet permission and add "MyApplication" to mainfeast.

 <manifest ...> <application ... android:name="MyApplication"> ... </application> <uses-permission android:name="android.permission.INTERNET"> </uses-permission> </manifest> 

A detailed description is given here http://acra.ch/

0
source

All Articles