Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Android Crash Catcher
Java Ruby
branch: master

README.md

Android Crash Catcher

Android Crash Catcher is simply a mechanism for catching any exception in android SDK


Installation

mvn install

Usage

Add to your pom.xml following:

    <dependency>
        <groupId>org.netcook.android</groupId>
        <artifactId>crashcatcher</artifactId>
        <version>1.0.3</version>
    </dependency>

Add the permission for read logs to AndroidManifest.xml file:

    <uses-permission android:name="android.permission.READ_LOGS" />

Add to your base activity CrashCatcherActivity as parent:

public class BaseActivity extends CrashCatcherActivity {
    @Override
    protected String getRecipient() {
        return "xxxxx@xxxxx.xxx";
    }

    @Override
    protected Class<?> getStartActivityAfterCrached() {
        return BaseActivity.class;
    }
}

Add to your base service CrashCatcherService as parent:

abstract public class AbstractService extends CrashCatcherService {

    @Override
    protected Class<?> getStartActivityAfterCrached() {
        return BaseActivity.class;
    }
}

Add the base activity to AndroidManifest.xml file:

    <activity android:name="BaseActivity" />

Profit!

Something went wrong with that request. Please try again.