Visit GitHub RepoCrash Reporting


Gradle Android Arsenal

Gradle :

compile 'com.github.karthyks:crashlytics:1.0.1'

Usage :
First step is to initialize Crashlytics inside your application class, along with a CustomCrashEvent class instance, as shown below

Crashlytics.init(Application, new CrashHandler());

Typical CrashHandler class will look like mentioned below.

// This class runs on a different thread,  UI related tasks should not be executed inside this class.
public class CrashHandler extends CustomCrashEvent {
  public void onEventOccurred(List<EventModel> eventModels) throws Exception {

If your app has login feature, then the user info can be injected into the Crashlytics, to obtain info about the crashes and events once happened.
Crashlytics.login(company, userid);

In case of any exception thrown in the onEventOccurred method, then the events are stored locally in the db. Once if there are any locally stored events found, then a background service will run every 15 minutes by default, which in turn keeps on triggering the onEventOccurred method, until it passes. The 15 minutes interval can be tweaked by changing CrashEvent.ALARM_FREQUENCY.

Become a better Android Developer
Millions of developers are learning at MindOrks

Online Training Program

Featured Blogs

Our Team

MindOrks is Certainly one of the best online blog to stay on top of all the Android development news, coding and design patterns. Finally a blog I can count on to keep myself updated with latest and greatest things happening in Android world.

Vipul Shah
Android Developer

Become Pro in Android by watching videos