Configuration reference
Android Java SDK: Configuration reference
Configuration reference
Submit typed configuration before constructing the SDK. Mutating configuration afterward does not replace device lifecycle operations. Finish the old session and create a new configuration when reconfiguration is required.
| Type/entry | Fields or parameters | Purpose |
|---|---|---|
SdkConfig.builder() | device/devices, target/targets, debug, algorithms | Combine devices, targets and workflows |
GloveConfig.builder() | side, connection, name, enabled | Glove declaration; enabled defaults to true |
CompositeExoGloveConfig.builder() | devices, connection, name, enabled | Independent outer/member naming |
SerialConnection.port(port[, baudrate]) | Explicit port, optional baud rate | Required Android host-serial selection |
ExternalConnection.INSTANCE | None | App-supplied frames |
AlgorithmsConfig(calibration, capture) | CalibrationConfig, CaptureConfig | Workflow settings; null uses corresponding defaults |
CaptureConfig(mode, force, operatorId) | EXTERNAL, force, operator | App-controlled capture prompts |
CalibrationConfig(force) | Force calibration | Reuse/recalibrate policy |
TargetConfig.builder() | type, source, name, side, algorithms | Algorithm output declaration |
TargetAlgorithm(id) | Identifier from the actual delivery | Select a delivered algorithm |
SubscriptionConfig.latest(rate) | Optional positive finite rate | New callbacks keep newest pending value |
SubscriptionConfig.fifo(capacity, rate) | Positive capacity, optional positive finite rate | Bounded order, drop oldest on overflow |
DebugConfig.builder() | modules, detail, sampleRate | Debug sampling and detail |
The default GloveConfig connection uses auto-discovery; Android host transports must override it with SerialConnection.port(selectedPort). Use one SDK instance per process.
The Java SDK manages app-private data. Ordinary Java apps need no desktop environment variables. Android algorithm deliveries identify architecture as aarch64, while the app ABI is arm64-v8a. Obtain a matching delivery rather than modifying packages to bypass compatibility checks.
TargetAlgorithm(id, mode, path) and the built-in overload support BoneConfigMode.AUTO/ENABLED/DISABLED and nullable algorithmConfigPath; single-argument defaults remain. Glove strengths are integers 0–127 and Exo remains 0–100. Receiver-connected gloves each use an ordinary GloveConfig with an explicit side and the same authorized SerialConnection.
Bone configuration preparation
Use BoneConfig.create(...) on a worker thread before SDK construction. It defaults to operator "default", CaptureInteractionMode.AUTO_TERMINAL and BoneConfigOverwritePolicy.REPLACE_EXISTING. For an Android App interface, explicitly select EXTERNAL and use the returned session to present, poll, install and close. session.install() also defaults to replacement. Pass DENY at terminal creation or external installation to reject an existing same-operator, same-hand profile.
BoneConfig.exportFile(...) writes a saved profile to a Path destination and defaults to DENY. Select REPLACE_EXISTING explicitly to replace an export destination. SDK construction loads the saved profile for the same operator and hand. See hand configuration and migration for the matching Java/JNI delivery requirement.
Complete calibration replay
TargetAlgorithm adds optional calibrationKey, with the four-argument constructor TargetAlgorithm(id, useBoneConfig, algorithmConfigPath, calibrationKey). Point it to a complete .qnbotkey file exported by Python/C++ for replay with the matching target and hand side.