Provide native support for your Kount solution by integrating the Kount SDK into your Android application. This allows you to use Kount services without having to create API calls. Software for this integration can be found in the GitHub repository.
Integrating Android Library JAR
- Download the latest SDK from GitHub, and then extract the contents of the file.
- In Android Studio, copy the JAR file extracted from the SDK into the libs folder
“Project Path”\app\libs
of your application. - In the Project viewer, right-click the JAR, and then click Add as library.
- In the Gradle file for your app, add the following dependencies:
dependencies { ... implementation 'com.google.android.instantapps:instantapps:1.1.0' implementation 'com.google.code.gson:gson:2.8.6' implementation group: 'com.android.volley', name: 'volley', version: '1.2.1' implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.3.72' implementation "com.google.android.material:material:1.4.0" }
- To enable Location Collection support to detect devices in suspicious locations, add the following permissions to your application’s xml under the
<manifest>
tag:<uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /> <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
Note: The Kotlin library is only necessary if your application is written in Java. If your application uses Support libraries, then it must be migrated to Android X libraries. Refer to How to Integrate the Device Data Collector into Mobile Apps using Android Gradle for steps on migrating to Android X libraries. - Once you have integrated the Library JAR, proceed to step two to invoke the Device Data Collector.
For Native Android invocation, refer to How to Invoke the Device Data Collector into Mobile Apps using Native Android SDK.
For Android Kotlin, refer to How to Invoke the Device Data Collector into Mobile Apps using the Android Kotlin SDK.