SDKJava (Android) SDK

Configuration reference

Android Java SDK: Configuration reference

Current version · 2.0.0

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/entryFields or parametersPurpose
SdkConfig.builder()device/devices, target/targets, debug, algorithmsCombine devices, targets and workflows
GloveConfig.builder()side, connection, name, enabledGlove declaration; enabled defaults to true
CompositeExoGloveConfig.builder()devices, connection, name, enabledIndependent outer/member naming
SerialConnection.port(port[, baudrate])Explicit port, optional baud rateRequired Android host-serial selection
ExternalConnection.INSTANCENoneApp-supplied frames
AlgorithmsConfig(calibration, capture)CalibrationConfig, CaptureConfigWorkflow settings; null uses corresponding defaults
CaptureConfig(mode, force, operatorId)EXTERNAL, force, operatorApp-controlled capture prompts
CalibrationConfig(force)Force calibrationReuse/recalibrate policy
TargetConfig.builder()type, source, name, side, algorithmsAlgorithm output declaration
TargetAlgorithm(id)Identifier from the actual deliverySelect a delivered algorithm
SubscriptionConfig.latest(rate)Optional positive finite rateNew callbacks keep newest pending value
SubscriptionConfig.fifo(capacity, rate)Positive capacity, optional positive finite rateBounded order, drop oldest on overflow
DebugConfig.builder()modules, detail, sampleRateDebug 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.