/tap-android-sdk:tap-android-build-an-appfrom tap-android-sdk
Builds an Android app controlled by a Tap wearable device (Tap Strap, TapXR, TapBand). Covers SDK setup, gesture input, lifecycle, and UI feedback for games, presentations, or creative tools.
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.
The user may not be an Android developer. Keep the project small, say how to run it (Android Studio, Run 'app'), and test with the real device.
TapBand uses the same BLE API as TapXR. TapBand is coming soon (not for sale): https://www.tapwithus.com/tapband-waitlist/. Current TapXR developer firmware reports the full gesture set.
tap-android-getting-started and confirm taps arrive before building anything else. Order: TapSdkFactory.getDefault(context), registerTapListener, resume() / pause().tap-android-tappingtap-android-vision-modelstap-android-imu-motiontap-android-knob (framed protocol)tap-android-dpad (framed protocol)tap-android-raw-sensorssdk.vibrate(...) and on-screen state, so the user knows the gesture was seen.tap-android-getting-started.SDK callbacks are not the main thread. Copy the event and update the UI on the main looper. Do not draw in the callback.
private final Handler main = new Handler(Looper.getMainLooper());
@Override
public void onTapInputReceived(String id, int data, int repeatData) {
main.post(() -> {
status.setText("Connected");
applyTap(data);
});
}
Show connection status on screen: "Waiting for Tap…", then the device name from sdk.getCachedTap(id) inside onTapConnected / onTapChanged, and "Disconnected" from onTapDisconnected.
Add a keyboard or button fallback (volume keys, on-screen buttons) so the screen can be tried in the emulator with no Tap. The emulator will not connect to a real Tap.
@Override protected void onResume() { super.onResume(); sdk.resume(); }
@Override protected void onPause() { super.onPause(); sdk.pause(); }
pause() returns the Tap to Text mode so it works as a keyboard in other apps. That is the right default.
If the app must keep receiving taps while stopped, call sdk.disablePauseResumeHandling() and tell the user the Tap will not return to keyboard mode by itself. Do this only when they asked for background input.
Unregister the listener in onDestroy. Call sdk.close() only when the process is done with Bluetooth (it releases the shared manager from TapSdkFactory).
| Output | How |
|---|---|
| On-screen UI | Views or Jetpack Compose. Post callback results to the main thread. |
| Sound | SoundPool or ToneGenerator from the main thread. |
| Another Activity in the same app | Start it from the main-thread handler. |
| The system back / home action | An AccessibilityService the user turns on in Settings. Prefer in-app controls. Do not ship an accessibility service for an app that only needs its own UI. |
Do not add libraries to the SDK module. App dependencies belong in the app build.gradle.
implementation 'io.github.tapwithus:tap-android-sdk:0.3.6' with mavenCentral().sdk.isV2Tap(id) is the framed-protocol check, not "SDK v2".TapSdk can see several paired Taps. Key state by tapIdentifier.minSdk of the SDK is 23. Runtime Bluetooth permission is required on API 31+.onXRAirGestureReceived for click / drag / drop / swipe UI. Keep onAirMouseInputReceived when you need the raw codes other SDKs see.tap-android-getting-started.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub tapwithus/tap-android-sdk --plugin tap-android-sdk9 skills in this plugin
/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-raw-sensorsStream raw accelerometer and gyroscope samples from a Tap on Android (classic raw mode or framed RAW_IMU_DATA) and set sensitivity. Use for raw sensors, raw IMU, accelerometer, gyro, data logging, or custom gesture recognition. 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