Installation

Gradle Installation

Add the following dependency to your build.gradle file

dependencies {
   compile 'com.bugsee:bugsee-android:+'
}

It is the recommended way to install Bugsee.

But if you use Maven (for example, Android Maven Plugin) to build your project, follow the Maven Installation instructions.

Initialization

If you have no android.app.Application subclass, it is necessary to create it and to specify it's name as the "android:name" attribute in your <application> tag in AndroidManifest.xml.

    <application
        android:name="com.example.MyApplication">
       <!--...-->
    </application>

Launch Bugsee from onCreate() method of your Application subclass.

!Java

public class MyApplication extends Application {
    @Override
    public void onCreate() {
        super.onCreate();
        Bugsee.launch(this, "<your_app_token>");
    }
}

!Kotlin

class MyApplication : Application() {
    override fun onCreate() {
        super.onCreate()
        Bugsee.launch(this, "<your_app_token>")
    }
}