Android SDK
With BugBattle weโve put the lame task of bug fixing upside down and turned it into a gaming experience for you and the whole development team. As if by magic the quality of your apps and websites improves โ and your customers will be delighted.
Getting started
The easiest way to integrate BugBattle into your apps is by using the BugBattle Android SDK! This article explains the basic steps to integrate this library to your personal project. ๐
Add BugBattle
Open your app in your preferred development tool, for e.g. Android Studio.
Add the dependency
In the same file ( build.gradle ) add the dependency to include the library.
( don't forget to synchronise your includes ๐)
By adding this, you are ready to use the library in your app. Let's carry on with the initialisation ๐
Initialise the SDK
Open your preferred development tool and add the following to your main class.
This two includes are everything you need.
Add the initialise method to your main activity . Your API key can be found in the project settings within BugBattle. The second parameter is, how the bug report flow is started. There are multiple ways to activate the flow.
BugBattleActivationMethod.NONE
: No automatic activation.
BugBattleActivationMethod.SHAKE
: Activation on device shake.
BugBattleActivationMethod.THREE_FINGER_DOUBLE_TAB
: Activation by double three finger tabbing the display.
BugBattleActivationMethod.SCREENSHOT
: Activation when user performs a screenshot trigger.
The following method starts the flow, which is also invoked by the shake gesture. To start the flow use this method:
Now you are ready to go ๐