Home

Awesome

Android crash reports viewer

This project is an ACRA PHP Frontend. ACRA is the Application Crash Reporting tool for Android. Check https://github.com/ACRA/acra The aim of it is to have a rather simple setup: PHP and MySQL. This should work pretty nicely with any version. Any contribution welcome. I have very little time to spend on this project. I do use it for my production apps, so it should be useable as long as you don't want a nice UI ;) See screenshots below.

Setup

On the server

Setup instructions:

$ cd ~
$ git clone https://github.com/BenoitDuffez/crashreportsviewer.git
$ cd crashreportsviewer

Edit config.php file as follows:

<?php
$mysql_server = 'mysql.server.com'; // usually it's simply localhost
$mysql_user = 'username';
$mysql_password = 'password';
$mysql_db = 'db_name'; 

Make Apache (or your webserver) point to ~/crashreportsviewer/www. Open up your web browser to http(s)://your.server.tld/path/to/www/, which should indicate a message that the database is not installed. Simply click the link, and go back to http(s)://your.server.tld/path/to/www/.

The database is now ready to receive crash reports. Configure your client (and make it crash!) to see if this is working for you.

On the client

ACRA should sent reports to http://server.tld/path/to/submit.php. Example annotation of your Android Application class:

@ReportsCrashes(formKey = "", // will not be used
				formUri = "http://yourserver.com/path/to/submit.php",
				formUriBasicAuthLogin = "yourlogin", // optional
				formUriBasicAuthPassword = "y0uRpa$$w0rd", // optional
				mode = ReportingInteractionMode.TOAST,
				resToastText = R.string.crash_toast_text)
public class MyApplication extends Application {
...
}

Usage

Pages

Image: Example of the dashboard
Dashboard overview

Image: Example of an issue report Issue report

Features

License

Copyright 2013 Benoit Duffez

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.