Buggy

This is a very simple crash dialog for Android that allows the user to send a report.

Here are screenshots:

Use it as follows:

Step 1: Add as a depencency

Add this to your root build.gradle file:

allprojects {
    repositories {
        ...
        maven { url 'https://jitpack.io' }
    }
}

Now add the dependency to your app build.gradle file:

implementation 'com.github.marcoscgdev:Buggy:1.0.1'

Step 2: Setting up the dialog

Simply initialize it in your Application class. Thats all!

public class MyApplication extends Application {

    @Override
    public void onCreate() {
        super.onCreate();
        Buggy.init(this)
                .withEmail("[email protected]") // Your email
                .withSubject("Bug report for " + getResources().getString(R.string.app_name)) // Your subject
                .start();
    }

}

Custom dialog strings (just override it):

<string name="buggy_dialog_message">There was an error in the application. Do you want to report it?</string>

Full Example

Here is a full example

(a). MyApplication.java

import android.app.Application;
import com.marcoscg.buggy.Buggy;

public class MyApplication extends Application {

    @Override
    public void onCreate() {
        super.onCreate();
        Buggy.init(this)
                .withEmail("[email protected]")
                .withSubject("Bug report for " + getResources().getString(R.string.app_name))
                .start();
    }

}

(b). MainActivity.java

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
    }
}

Reference

Read more here.
Download code here.
Follow code author here.