-
Clone the repo using below command:
git clone https://github.com/xtravision-ai/XtraVision-KotlinSampleApp.git
-
Open cloned repo in
Android Studio
and open file:app/src/main/java/com/xtra/kotlin/example/MainActivity.kt
-
Do required changes in file:
// Set Required Variable val authToken = "__AUTH_TOKEN__" // Put your auth token here val assessmentName = "SQUATS" // Set your required assessment name here val selectedCamera = 0 //0: Front Camera, 1: Back Camera
-
Install and run this sample app on your physical device. (Due to some Google ML kit dependency, SDK can't work in the emulator. You need a physical device to run the sample app).
To get API credentials, detailed documentation for request/response, and how to integrate SDK into your app, please contact Xtra Team.