Android Crash Reporting with Raygun

Easily detect, diagnose and fix Android crashes

Solving Android crashes has never been so easy!

Detect, diagnose and destroy Android errors and crashes that are affecting your customers. With smart Android crash reporting software from Raygun, you can be alerted to issues affecting your users, the second they happen.

Simply add a short code snippet and deploy your app into production, that’s all you need to start monitoring your applications for Android crashes. Start fixing bugs within minutes of your application going live!

Raygun supports all major programming languages and platforms including iOS, Android, Xamarin, Javascript and more. Whatever your tech stack looks like, or whether you’re monitoring backend or frontend code, Raygun can ensure all issues are brought to your team’s attention. All your errors are reported to your Raygun dashboard automatically.

Getting started - It's quick and easy

2

Add code snippets

The follow instructions are for Gradle/Android Studio projects. If you use Maven, Ant or other build tools, instructions and links to the artifacts are available from the full Android documentation.

Ensure Maven Central is present in your project's build.gradle:

allprojects {
    repositories {
        mavenCentral()
    }
}

Then add the following two compile statements to the dependencies section in your module's build.gradle:

dependencies {
    // Existing dependencies may go here
    compile 'com.google.code.gson:gson:2.1'
    compile 'com.mindscapehq.android:raygun4android:3.0.0'
}

3

Then sync your project

Next, add the following specific imports to your class, where you wish to use RaygunClient:

import main.java.com.mindscapehq.android.raygun4android.RaygunClient;
import main.java.com.mindscapehq.android.raygun4android.messages.RaygunUserInfo;

In AndroidManifest.xml, add these beneath the manifest element:

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

4

Then add this within the application element:

<service   android:name="main.java.com.mindscapehq.android.raygun4android.RaygunPostService"
           android:exported="false"
           android:process=":raygunpostservice"/>
<meta-data android:name="com.mindscapehq.android.raygun4android.apikey"
           android:value="Your_API_Key" />

5

In a central activity method (such as onCreate()), call:

RaygunClient.init(getApplicationContext());
RaygunClient.attachExceptionHandler();

6

Start sending data!

Raygun will start monitoring your application for Android problems that are present in your application. Errors are grouped by their root cause and smart notifications alert you to the things that need attention.

Start fixing your Android errors and crashes and improve your app quality!

Don’t rely on your users to report errors

14 day free trial - no credit card required!

Android Crash Reporting Features

Getting the crash report from a user is difficult for every mobile developer, so we’ve made it easy, automatically collecting crash reports from the user’s device and presenting the diagnostic details on your Raygun dashboard. Testing can get you so far, but once your app is out in the wild, how will you know whether errors and crashes are occurring for users? Raygun gives mobile developers full visibility over problems affecting their apps.

Raygun4Android is a library that you can easily add to your Android app, which will then allow you to transmit all exceptions to your Raygun dashboard. Installation is painless, and configuring your site to transmit errors takes less than five minutes.

Raygun gives you full stacktraces for each and every error occurrence, along with environment information, HTTP requests, raw data, browser, OS, affected users and more. All the details you need to rectify issues quickly and efficiently. Raygun stores every single error event (no data sampling) so you’ll always have the right information at hand when needing to see when, why and how an error occurred.

    • Rather than be bombarded with a flood of messages and error emails, Raygun silently monitors your applications in the background and offers smart alerts for you when need to take action. Notifications are fully customizable, but repeating error instance emails and team chat alerts are sent only when issues are recurring or getting worse, resulting in more signal, and less noise.
    • Raygun allows you to set inbound filters to remove the reporting of errors you don’t care about or cannot fix, meaning you’ll be able to see the problems that are highest priority and affecting the largest amount of users. Choose what you want to monitor with custom setup for dealing with private user details and sensitive information, you can do it all.

It takes minutes to set Raygun up - seriously

Simply add a short Android code snippet and deploy your application into production, that’s all you need to start monitoring your application for Android errors. Start fixing bugs within minutes!

More about Crash Reporting
Raygun dashboard Play button
Close

Raygun also supports your backend

Don’t rely on your users to report errors

14 day free trial - no credit card required!

Supports all major web and mobile programming languages

View all languages

Integrates with the workflow tools you use everyday

View all integrations

Solve your Android crashes with Raygun

Forget logs and support tickets. Find the answers you need with greater speed and accuracy.

Raygun Android Error Monitoring

Discover why 40,000+ developers love Raygun

14 day free trial - no credit card required!