Skip to main content

Android quickstart

Get a workspace key, run the Android sample, and verify your first barcode and tenant telemetry in three steps.

Get a workspace key, run the included sample, then verify your scan and tenant telemetry.

Open SDK workspace · Integrate with Kotlin · Integrate with Java

Use Android SDK 0.1.0-RC5 with an Android 8.0+ phone, JDK 17 and Android SDK 35. The SDK validates a workspace-issued device key, resolves its tenant and device, and records device details during initialization. You do not need a phone login screen or manual tenant/device IDs.

1. Get a key and the SDK

Open your SDK workspace . Activate a free trial or purchase a device seat directly; a trial is optional. Choose Create trial device key , or create a key for a purchased seat. Copy the complete clientId.secret value when it appears.

Download the 0.1.0-RC5 Android SDK from SDK Downloads. Compare the ZIP SHA-256 with the workspace value, then extract it. Use RC5 or newer for key-based initialization; the older RC4 download does not contain VisionScanSdk.initialize .

2. Run the included sample

The ZIP includes a standalone sample-app project and its local maven repository. Keep those folders together. Connect an unlocked Android phone with USB debugging enabled, then run from sample-app :

$env:VISION_SCAN_SDK_API_KEY = Read-Host 'Paste your workspace SDK key'
.\gradlew.bat :app:installDebug
Remove-Item Env:VISION_SCAN_SDK_API_KEY

On macOS/Linux, run chmod +x gradlew , then use ./gradlew :app:installDebug with the same environment variable. Android SDK location is resolved from your normal Android Studio/SDK setup; if needed set sdk.dir in an untracked local.properties . Android Studio users can open sample-app , put VISION_SCAN_SDK_API_KEY=<your complete key> in that untracked file and run the app configuration instead.

Open Vision Scan Sample App , wait for Ready to scan , allow camera access and tap Scan with AR + telemetry . Point at a real QR code or EAN-13/UPC product barcode. Use Scan barcodes for the compatibility camera path; use the AR button for this telemetry check.

The key is supplied during the build and SDK initialization in code, never through a phone key-entry screen. Use a dedicated device key for a test installation and keep the build private. Rebuild after rotating that key.

3. Confirm the result

You should see green barcode boundaries and Captured … entries with the actual decoded value, symbology and confidence. GTIN/lot/expiry/serial appear when the SDK can derive them from the barcode. An undecoded frame produces no invented result. Scan activity shows start, captures and stop; per-frame counters do not flood it. Summary shows one scan summary on request.

Tap Stop , then open SDK usage and device diagnostics in the same workspace . Refresh after delivery and check the device, SDK version, AR mode, processed frames, accepted barcodes and symbologies. Matrix telemetry defaults to 30-second delivery; the sample requests a flush after captures and on stop. A transient network outage can delay delivery.

Telemetry contains counts and timing, not barcode values or camera images. A visible box is not another acceptance. Two physical products may share a value, so acceptance count is not automatically a unique-product or billing count.

Integrate into your own app

Follow the Kotlin guide or Java guide : install the Maven artifact, call VisionScanSdk.initialize on a worker with the same key, then bind your camera to a MatrixScan session. The complete runnable CameraX/overlay wiring is in the included sample; you do not need to reproduce its diagnostics UI.

If a step fails

Symptom Next action
SDK download unavailable Check trial/paid-seat access and workspace permissions; creating an account alone does not grant a seat.
initialize does not compile Confirm dependency and downloaded package are RC5 or newer. RC4 lacks this entry point.
Gradle cannot find the SDK Keep sample-app beside maven ; the SDK is not on public Maven Central.
Workspace connection needs attention Check the full key, internet connection, correct workspace and device access. Reopen after correcting access; rebuild if the key changed.
Scanning access unavailable Check trial/subscription, seat and key status. Reconnect online; a short device lease may need renewal even when the workspace trial continues.
No captures Improve focus, distance and light; keep the entire code visible. No-decode frames are normal.
No tenant telemetry Use the AR + telemetry button, stop/flush, check connectivity, then refresh the same workspace. The compatibility camera path is not automatically Matrix-instrumented.

Trial owners with billing administration access can use the workspace's one-time 15-day extension if eligible. Confirm it, then reopen/reinitialize the app online. This does not create another device key.

Android remains an evaluation SDK. See the support matrix for platform and release limits.