Example index
Java examples for the current Android SDK.
Current version · 2.0.0
Example index
Java examples for the current release. See Installation & requirements for dependencies and Quick start for the first read. Open the linked page and copy the class into the app; longer workflows show labelled excerpts.
Glove examples
| Java source | Goal | Main API |
|---|---|---|
| QuickStart.java | Discover the only glove and stream pose | GloveDevice.pose().subscribe() |
| DiscoverGloves.java | List glove candidates and per-device errors | Sdk.discoverGloves() |
| DeviceSelection.java | Select by name and side, including ambiguity | Glove.device(name, side) |
| DeviceInfo.java | Read identity, hand and transport type | GloveDevice.getDeviceInfo() |
| DeviceLifecycle.java | Start and stop each hand independently | GloveDevice.start() / stop() |
| SubscriptionConfig.java | Count pose delivery under Latest / FIFO | ReadChannel.withConfig() |
| MultipleOutputs.java | Drive two named target outputs from one source | TargetConfig / device.output(name) |
| ManualRuntime.java | Advance updates step by step | Glove.update().sleep() |
| ForegroundRuntime.java | Stream target output on the calling thread | Glove.runForever() |
| BackgroundRuntime.java | Run in the background for a fixed duration | Glove.runBackground() |
| AsyncRuntime.java | One async read and a continuous flow read | ReadChannel.next() / publisher() |
| Haptics.java | Set, hold and clear haptics | device.haptics().set() / clear() |
| Imu.java | Read raw IMU counts or physical values | device.imu().subscribe() |
| Pressure.java | Read 460 pressure points from one Tactile ENF Positioning Glove (VetraGlove HMP-MX) | device.pressure() |
| TimeSync.java | Synchronize before start and while running | Glove.syncTime() |
| HostCaptureCalibration.java | Capture, confirm and calibrate both hands | device.startCapture() / startCalibration() |
| CaptureQuality.java | Assess 30-frame hand pose quality windows and manual retention | device.createCaptureQualitySession() / assessStage() |
| ExternalInputManualUpdate.java | Push app frames and advance manually | device.pushFrame() |
| ExternalInputRunBackground.java | Push app frames with the SDK in the background | device.pushFrame() |
| Skeleton.java | Read built-in skeleton joints and pose | device.skeleton().jointAngles() / pose() |
| AlgorithmConfiguration.java | Configure bone mode, algorithm parameters and packages | TargetAlgorithm / importAlgorithmArchive() |
| DebugTrace.java | Enable diagnostics and read target output | SdkConfig.builder().debug() |
Exo+Glove composite examples
| Java source | Goal | Main API |
|---|---|---|
| QuickStart.java | Discover the composite device and stream both poses | sdk.start() / glove.device(side) |
| DiscoverExoGlove.java | Read composite member identity and Exo information | glove.device(side) / exo.device() |
| GloveRetargeting.java | Read both composite target outputs | device.output(name) |
| GloveHaptics.java | Submit and clear haptics requests on both hands | device.haptics().set() / clear() |
| DeviceInfo.java | Read hand sources and Exo identity | GloveDevice.getDeviceInfo() |
| Imu.java | Read Exo IMU over the shared link | payload.torsoImu |
| Telemetry.java | Read glove pose, status and Exo telemetry | pose().subscribe() |
| Lifecycle.java | Start, read, stop and close the composite device | sdk.update() |
Set up one root Sdk and a shared serial port as shown in the Glove + Exo composite guide. The composite device accepts haptics requests without vibrating. To test vibration, run Haptics.java with a standalone glove that supports haptics.