Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ACRA : Configured to send report on mail but not getting any mail

Tags:

android

acra

I am trying to configure ACRA for the first time. I have followed the Basic Setup guide :

1.Integrated the acra jar file to my app

2.Created a new class extending application class and have added the below code to it :

     @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 all necessary changes to manifest file

It seems that all is done correctly,I am able to get the 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 am not able to get any mail :( !

like image 948
user1921160 Avatar asked Oct 22 '22 21:10

user1921160


1 Answers

As far i know, the mailTo option needs the user in order to send the email. When an error occurs another mail client (such as Gmail.apk) has to be open to process the crash report and send e-mail. So the error will open a mail client and we need the user to click on send button.

like image 121
isra60 Avatar answered Oct 29 '22 18:10

isra60