Add buglife-android
as a dependency to your build.grade
.
dependencies {
compile 'com.buglife.sdk:buglife-android:1.5.1'
}
Add the following lines to the end of the onCreate()
method in your main Application
subclass:
Buglife.initWithEmail(this, "you@yourdomain.com");
Buglife.setInvocationMethod(InvocationMethod.SCREENSHOT);
If your project doesn't already have a custom Application
subclass, you will need to create one (and don't forget to add it to your app's AndroidManifest.xml
).
If you have a Buglife account already, you should initialize Buglife with your team's API key instead of your email:
Buglife.initWithApiKey(this, "YOUR_BUGLIFE_API_KEY");
Buglife.setInvocationMethod(InvocationMethod.SCREENSHOT);
You can find your team's API key by signing in and returning to this page.
Build & run on a device; take a screenshot to report a bug!
Submit a bug report from your device, then check your email for a link to the Buglife web dashboard!