/tap-android-sdk:tap-android-raw-sensorsfrom tap-android-sdk
Streams raw accelerometer and gyroscope samples from a Tap device on Android (classic raw mode or framed RAW_IMU_DATA) and sets sensitivity. Useful for data logging, custom gesture recognition, or building IMU-based models.
Ships in tap-android-sdk. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
For logging and custom gesture models. For a cursor or orientation, prefer tap-android-imu-motion (less data, already integrated).
Samples arrive on onRawSensorInputReceived(id, RawSensorData). Keep the callback short: copy the sample onto a queue and write files on another thread.
RawSensorData fields: timestamp (device clock, milliseconds), dataType, points (Point3 x, y, z).
dataType | Contents | Indexes |
|---|---|---|
RawSensorData.DataType.Device | finger accelerometers, thumb first | iDEV_THUMB, iDEV_INDEX, iDEV_MIDDLE, iDEV_RING, iDEV_PINKY |
RawSensorData.DataType.IMU | thumb gyro and accelerometer | iIMU_GYRO, iIMU_ACCELEROMETER |
Point3 thumb = rsData.getPoint(RawSensorData.iDEV_THUMB);
if (thumb != null) {
double x = thumb.x, y = thumb.y, z = thumb.z;
}
Use timestamp for spacing between samples, not System.currentTimeMillis().
sdk.registerTapListener(listener);
// from onTapConnected, or once you know the id:
sdk.startRawSensorMode(id, (byte) 0, (byte) 0, (byte) 0); // 0 = device default
// leave raw mode
sdk.startControllerMode(id);
Arguments are deviceAccelerometerSensitivity (finger accelerometers, 1–4), imuGyroSensitivity (1–5), and imuAccelerometerSensitivity (1–4). 0 keeps the default.
pause() stops the raw-mode refresh loop. resume() starts it again. Forward both.startRawSensorMode enables DeviceFeature.RAW_IMU_DATA and disables model detection and IMU-motion. The framed protocol streams the thumb IMU only. There are no finger accelerometers. DataType.Device packets are not produced.
sdk.setFeature(id, DeviceFeature.RAW_IMU_DATA, true);
sdk.setImuSensitivity(id, /* gyro 0-5 */ 3, /* accelerometer 0-4 */ 2);
sdk.getImuSensitivity(id, (identifier, sensitivity) -> {
// null on timeout
// sensitivity.getGyro() and sensitivity.getAccelerometer() are the wire bytes
});
Gyro range is 0–5. Accelerometer range is 0–4. 0 is not a named range.
Turn raw mode off with setFeature(id, DeviceFeature.RAW_IMU_DATA, false) or startControllerMode(id), then re-select a vision model if you want taps again (startXRTappingState).
Append samples to an ArrayDeque or a single-thread executor from the callback. Write CSV off that callback. Columns that stay unambiguous: timestamp, type (device or imu), then x, y, z per point. Ask the user how long to record. There is no sample script in the SDK; the callback above is the whole integration.
tap-android-sdk skill, reference.mdWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub tapwithus/tap-android-sdk --plugin tap-android-sdk9 skills in this plugin
/tap-android-build-an-appBuild a complete Android app or interactive experience controlled by a Tap — games, presentations, media control, or creative tools. Use when the user asks to build, make, or create something with their Tap on Android. Start with tap-android-getting-started: TapSdkFactory.getDefault, registerTapListener, resume and pause. getDefault() alone delivers no taps./tap-android-dpadBuild a D-Pad style controller on Android with a Tap — swipes for directions, short pinches to select, pinch-hold that locks into rotate (twist) or drag (move), fist-hold to hide. Use for D-Pad, menu navigation, drag and drop, or game controls. Needs the framed BLE protocol (current TapXR developer firmware; TapBand uses the same API). Requires tap-android-getting-started order: getDefault, registerTapListener, resume and pause./tap-android-getting-startedFirst skill for any Tap Android app. The order is TapSdkFactory.getDefault(context), then registerTapListener, then resume() in onResume and pause() in onPause. getDefault() alone delivers no taps. There is no connect() or start() method. Use for the Gradle dependency, Bluetooth permissions, pairing, "connect to my Tap", setup, or no tap events./tap-android-imu-motionUse Tap hand motion on Android — ImuMotionPacket (dx, dy, roll, pitch, yaw) on the framed protocol and MousePacket on classic firmware — to move a cursor, steer, tilt, or rotate. Use for air mouse, pointer, cursor, tilt, euler angles, or motion-driven UI. Requires tap-android-getting-started order: getDefault, registerTapListener, resume and pause./tap-android-knobBuild a virtual knob on Android with a Tap — hold a pinch and twist the wrist to turn a value up or down (volume, brightness, zoom, scroll). Use for knob, dial, twist, rotate-to-adjust, or continuous value control. Needs the framed BLE protocol (current TapXR developer firmware; TapBand uses the same API). Requires tap-android-getting-started order: getDefault, registerTapListener, resume and pause./tap-android-sdkAPI reference for the TAP Android SDK (com.tapwithus.sdk): TapSdk, TapListener, modes, framed-protocol features, haptics. Use when you need a method, callback, or data-type detail. For a new app, use tap-android-getting-started first. Order: TapSdkFactory.getDefault(context), then registerTapListener, then resume() in onResume and pause() in onPause. getDefault() alone delivers no taps. There is no connect() or start() method.Other plugins' skills for the same job