| Start |
|---|
| Fabric - Crashlytics Fabric is a modular mobile platform that provides useful kits you can mix to build your application. Crashlytics is a crash and issue reporting tool provided by Fabric that allows you to track and monitor your applications in detail. How to Configure Fabric-CrashlyticsStep 1: Change your Add the plugin repo and the gradle plugin: Apply the plugin: Add the Fabric repo: Add the Crashlyrics Kit: Step 2: Add Your API Key and the INTERNET permission in Step 3: Init the Kit at runtime in you code, for example: Step 4: Build project. To build and run: Using the Fabric IDE pluginKits can be installed using the Fabric IDE plugin for Android Studio or IntelliJ following this (opens new window) link. After installing the plugin, restart Android Studio and login with your account using Android Studio. ( short key > Then it will show the projects that you have / the project you opened, select the one you need and click next .. next. Select the kit you would like to add, for his example it is Crashlytics : Then hit Done! |
| Capture crashes using Sherlock Sherlock (opens new window) captures all your crashes and reports them as a notification. When you tap on the notification, it opens up an activity with all the crash details along with Device and Application info How to integrate Sherlock with your application? You just need to add Sherlock as a gradle dependency in your project. After syncing your android studio, initialize Sherlock in your Application class. Thats all you need to do. Also Sherlock does much more than just reporting a crash. To checkout all its features take a look at this article (opens new window). Demo |
| Crash Reporting with ACRA Step 1: Add the dependency of latest ACRA (opens new window) AAR to your application gradle(build.gradle). Step 2:
In your application class(the class which extends Application; if not create it) Add a Step 3: Initialize the ACRA class in your application class Where AUTH_USERNAME and AUTH_PASSWORD are the credentials of your desired backends (opens new window). Step 4: Define the Application class in AndroidManifest.xml Step 5: Make sure you have In case if you want to send the silent report to the backend then just use the below method to achieve it. |
| Force a Test Crash With Fabric Add a button you can tap to trigger a crash. Paste this code into your layout where you’d like the button to appear. Throw a RuntimeException Run your app and tap the new button to cause a crash. In a minute or two you should be able to see the crash on your Crashlytics dashboard as well as you will get a mail. RemarksThe best complete wiki is available here in github (opens new window). |
Read Article
https://develop.horje.com/learn/1434/reference