Android Native
Add VPS localization, object tracking and Non-LiDAR map scanning to an Android app with the platform agnostic MultiSet SDK, including quick start and requirements.
Overview
The MultiSet Android SDK provides Visual Positioning System (VPS) localization, object tracking and map scanning for Android applications. It enables precise indoor and outdoor localization using camera-based visual recognition against pre-mapped 3D environments, detects pre-registered physical objects in AR with an animated 3D outline, and records new maps on devices without LiDAR.
The SDK is platform-agnostic. It carries no ARCore, Sceneform or Jetpack XR dependency of its own. Your app converts each camera frame into a plain CameraFrame and hands it to the SDK through the FrameSource interface, so the same library runs on ARCore or on any other Android XR runtime. The repository ships two reference apps: an ARCore and Sceneform sample for phones, and an XREAL Aura sample for Android XR glasses.
Current version: 2.1.0
GitHub Repository: https://github.com/MultiSet-AI/multiset-android-sdk.git
What's New in 2.1.0
Non-LiDAR map scanning
Record a new map with the device camera, save it as a draft and upload it with the SDK's own credentials. See Map Scanning.
XREAL Aura sample
Map and MapSet localization and object tracking on Android XR glasses, with the same SDK and credentials.
Relocalization after a tracking break
The session re-localizes by itself once tracking recovers, and tells you when to hide the map. See Tracking breaks.
Object tracking across breaks
Re-tracks once tracking recovers and hides an object's content until that object is tracked again. Object tracking has its own settings on MultiSetSDKConfig.
Run stages
Both sessions report each run (Capturing, Uploading, AwaitingResponse, Idle) so your UI can show progress. See Run stages.
VPS-2 for multi-frame
queryMode is sent with multi-frame queries too, for a map or a MapSet.
Hints and GPS reach the query
hintPosition, hintFloorHeight, hintRadius, use2DFiltering, the GPS hint and includeGeoCoordinatesInResponse are now sent. The result carries the new geoPose.
First localization until success
Capped at 5 silent retries and independent of background localization.
Query image size
imageLongSide sets the long side of the query image, at most 1280. Frames keep their aspect ratio.
New defaults
Single-frame localization with VPS-1, and poseConsistencyCheck = false.
See the Version 2.4.1 changelog for the fixes in this release.
Table of Contents
Sample Activities
MainActivity - Authentication, SDK initialization, and navigation
MultiSetLocalizationActivity - Unified AR localization (single-frame & multi-frame)
ObjectTrackingActivity - AR object detection and tracking with animated mesh overlay
API Reference
FrameSource and Sessions - The platform-agnostic boundary and the session APIs
LocalizationConfig - Configuration parameters for localization behavior
ObjectTrackingConfig - Configuration parameters for object tracking behavior
Map Scanning (Non-LiDAR) - Recording, saving and uploading a new map
Quick Start
1. Add Dependencies
Add the MultiSet SDK AAR to your app's libs/ directory and configure dependencies:
Sceneform is published on JitPack, so add that repository to your project settings if you render AR:
Sceneform's native libraries also require legacy JNI packaging for 16 KB page size compatibility:
2. Credentials Setup
Create a multiset.properties file in your project root with your credentials, and keep it out of version control:
MULTISET_BASE_URL
API host override. Empty means production.
No
MULTISET_CLIENT_ID
Your client identifier
Yes
MULTISET_CLIENT_SECRET
Your secret key
Yes
MULTISET_MAP_CODE
Single map identifier
One of these is required
MULTISET_MAP_SET_CODE
MapSet identifier
One of these is required
MULTISET_OBJECT_CODES
Comma-separated object code list
Required for object tracking
3. Initialize the SDK
MultiSetSDKConfig validates on construction. Blank credentials, a missing map or object identifier, numberOfFrames outside 4 to 6, imageQuality outside 1 to 100, imageLongSide outside 1 to 1280, confidenceThreshold outside 0 to 1, poseConsistencyThreshold outside 1.5 to 15 metres, poseConsistencyYawThreshold outside 10 to 60 degrees, more than 10 object codes, hintRadius outside 1 to 100, or a malformed baseUrl all throw immediately.
Calling initialize again with the same account, for example from an activity recreated by a rotation, sends no request while the token is still valid. The callback hears onAuthenticationSuccess again.
A few settings exist only on MultiSetSDKConfig:
imageLongSide
960
Longer side of the query image in pixels, at most 1280. Frames keep their aspect ratio.
baseUrl
production
API host override, as MULTISET_BASE_URL above.
poseConsistencyTuning, mapAliasingRisk
null, empty
Advanced pose consistency settings. See FrameSource and Sessions.
4. Implement Callbacks
Only onSDKReady, onAuthenticationSuccess, onAuthenticationFailure, onLocalizationSuccess, onLocalizationFailure and onTrackingStateChanged must be implemented; every other callback has a default no-op implementation. Sessions built by MultiSetSDK report to this callback as well as through their own lambdas. See the full callback list.
5. Run a Localization Session
Results are delivered through the session you start, rather than being polled from the SDK. Supply frames through a FrameSource, handle the session callbacks, and report the AR tracking state:
Call session.stop() when you tear the scene down. It cancels both the scheduled capture and any request already in flight, so a late response cannot re-apply a pose after you have stopped.
See FrameSource and Sessions for the full session API, tracking breaks and a worked FrameSource implementation.
Requirements
Android API Level 28+ (Android 9.0)
Target SDK 36
Java 17
Kotlin 2.2.0+
Gradle 8.11.1 with AGP 8.10.0
Camera permission and internet connectivity
ARCore compatible device (only if you render AR with the sample app's approach)
For the XREAL Aura sample: an Android XR device with a world-facing camera, Android 14 or newer
License
Copyright (c) 2026 MultiSet AI. All rights reserved. Licensed under the MultiSet License. For license details, visit www.multiset.ai.
Last updated
Was this helpful?

