SDK Installation Guide
Requirements
Android SDK 2.2 (Version 8) and above.
Download
Installation Steps
Step I: Adding the Tooleap SDK jar file to your project
Copy the Tooleap SDK Jar file into your project’s libs folder. If this folder does not exist, create it.
If you are using IntelliJ / Android Studio, you’ll also need to right click on the jar file in the project view, choose “Add as Library…” and press OK.
Your project structure should now look like this:
|
1 2 3 4 5 6 |
project ├── libs │ └── tooleap-sdk.jar ├── res └── src ¦ |
Import the jar file to your project by adding the following line at the top of your class files which uses the Tooleap API:
|
1 |
import com.tooleap.sdk.*; |
Step II: Manifest Changes
Add the following lines into your app’s AndroidManifest.xml file inside the application tag:
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
<service android:name="com.tooleap.sdk.TooleapAppService"/> <service android:name="com.tooleap.sdk.TooleapUIService" android:process=":UIService" android:exported="true"> <intent-filter> <action android:name="com.tooleap.sdk.BIND_UI_SERVICE" /> </intent-filter> </service> <receiver android:name="com.tooleap.sdk.TooleapReceiver"> <intent-filter> <action android:name="android.intent.action.PACKAGE_REPLACED"/> <data android:scheme="package"/> </intent-filter> <intent-filter> <action android:name="com.tooleap.sdk.TOOLEAP_ACTION"/> </intent-filter> </receiver> |
Add the following permissions to your AndroidManifest.xml file:
|
1 2 3 |
<uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" /> |
Note: Creating Persistent or Home mini apps requires more changes to the AndroidManifest.xml file. Consult the Mini App Types guide for further details.
That’s It! You are all set to start creating Tooleap mini apps.
What’s Next?
