Skip to content

Android SDK 1.6.3

SDK Installation

  1. Download the Android SDK and sample code here.
  2. Unzip the downloaded SDK zip file to a folder in your local drive.

Sample Code

The quickest and simplest way to kickstart your journey with the Android SDK is by downloading and experimenting with our sample code. Follow these steps to open the sample project:

  1. Open Android Studio.
  2. In Android Studio, select "File", "Open...".
  3. Choose the demo folder from the downloaded SDK files, and then click Open.

IMPORTANT

In the demo code, the strings __YOUR_USER_ID__ and __YOUR_API_KEY__ should be replaced by your own User ID and API Key repectively. Please contact us to obtain your User ID and API Key.

Project Integration

IMPORTANT

Please note that for Android, the minimum SDK version must be at least 24.

  1. Add the following line to the file settings.gradle:

    kotlin
    include(":vital-sign-engine")
    project(":vital-sign-engine").projectDir = File("path_of_downloaded_folder/kotlin-vital-sign-sdk-1.6.3/sdk/libs")
    include(":vital-sign-sdk")
    project(":vital-sign-sdk").projectDir = File("path_of_downloaded_folder/kotlin-vital-sign-sdk-1.6.3/sdk")
    groovy
    include ':vital-sign-engine'
    project(':vital-sign-engine').projectDir = new File('path_of_downloaded_folder/kotlin-vital-sign-sdk-1.6.3/sdk/libs')
    include ':vital-sign-sdk'
    project(':vital-sign-sdk').projectDir = new File('path_of_downloaded_folder/kotlin-vital-sign-sdk-1.6.3/sdk')

    Please replace the string path_of_downloaded_folder above with the actual downloaded path.

  2. Remove or comment out the line which set the repositories mode to RepositoriesMode.FAIL_ON_PROJECT_REPOS from the file settings.gradle.kts or settings.gradle:

    kotlin
    dependencyResolutionManagement {
    //    repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
        repositories {
            google()
            mavenCentral()
        }
    }
    groovy
    dependencyResolutionManagement {
    //    repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
        repositories {
            google()
            mavenCentral()
        }
    }
  3. Add the dependencies in the file build.gradle.kts or build.gradle.

    kotlin
    implementation(project(":vital-sign-engine"))
    implementation(project(":vital-sign-sdk"))
    groovy
    implementation project(path: ':vital-sign-engine')
    implementation project(path: ':vital-sign-sdk')

Camera Permission

When developing for Android, you need to allow the app to use the camera by specifying the following in AndroidManifest.xml:

xml
<uses-permission android:name="android.permission.CAMERA" />

What's New

1.6.3 (14-May-2026)

  • Bundles Kotlin core 5.9.7.
  • Promotes the 1.6.3-b1 preview fixes into the production Android SDK release.
  • Fixed Android video-file resume handling so file playback does not fall back into camera-session setup before video props are applied.
  • Fixed native API video-file configuration so videoUri, file mode, and preview mirroring are applied through the normal camera view update path.
  • Fixed engine send timing so the first request can still be sent before the analyze-stage duration cutoff is enforced.

1.6.2 (14-May-2026)

  • Bundles Kotlin core 5.9.6.
  • Promotes the 1.6.2-b1 preview fixes into the production Android SDK release.
  • Fixed Android preview mirroring on robot/front-camera device paths by adding a backward-compatible preview mirror override and using preview transformation state updates for the effective mirror decision.
  • Fixed preview mirror state event reporting so demo applications can diagnose requested, CameraX-reported, and manually applied preview mirroring on screen.

1.6.1 (13-May-2026)

  • Bundles Kotlin core 5.9.5.
  • Fixed Android video-file resume handling so file playback does not fall back into camera-session setup before video props are applied.
  • Fixed native API video-file configuration so videoUri, file mode, and preview mirroring are applied through the normal camera view update path.
  • Fixed engine send timing so the first request can still be sent before the analyze-stage duration cutoff is enforced.
  • Includes the preview mirroring fixes previously validated in 1.6.1-b2.

1.6.0 (23-Apr-2026)

  • Adds V2 API support with getLastRequestV2() and getLastResponseV2()
  • Fixes response handling, analyze-stage, and scanning bugs