Easy to use mailer that sends you all crash reports from your Android apps.
- easy to setup
- supports custom data
- nice Bootstrap e-mail layout
- secured by a shared secret
- webserver with PHP support
- Application Crash Report for Android
- 5 minutes for setup
- put acra.php on a PHP enabled webserver
- open acra.php, set a secret and save the file
//CONFIG
$shared_secret = "<put your shared secret here>";
- download the ACRA JAR and put it in the libs directory in your Android project
- add ACRAPostSender.java to our project
- open ACRAPostSender.java and setup the base url and the email address
public class ACRAPostSender implements ReportSender {
private final static String BASE_URL = "http://example.com/acra.php?email=<your email address>";
private final static String SHARED_SECRET = "<your shared secret>";
(Note: don't put any secrets in the strings.xml! That file an be read by anyone very easily.) 6. setup ACRA with the ACRAPostSender reporter
@Override
public void onCreate() {
ACRA.init(this);
super.onCreate();
HashMap<String,String> ACRAData = new HashMap<String,String>();
ACRAData.put("my_app_info", "custom data");
ACRA.getErrorReporter().setReportSender(new ACRAPostSender(ACRAData));