TAP Official Android SDK
Updates
October 2026 - Product messaging: current TapXR developer firmware reports the full gesture set (taps, thumb swipes, pinches with hold, fist with hold). TapBand uses the same BLE API as TapXR and is coming soon. Android documents raw sensor detections and the processed onXRAirGestureReceived layer. Coding-agent skills are in AI-Assisted Development. There is one SDK — do not call it "SDK v1" or "SDK v2".
September 2026 - Added framed BLE protocol support - feature toggles, vision sensor configuration, IMU motion + Euler angles, standby state, unified air gestures and keepalive (See below). Aligned with tap-python-sdk and tap-ios-sdk.
July 2024 - Added TAPXR Gestures (See below).
What Is This?
TAP Android SDK lets you build an Android app that receives input from TAP devices: Tap Strap, Tap Strap 2, and TapXR. Each tap is an array of fingers, or a binary combination integer (explanation follows), so the TAP device can act as a controller for your app.
TapBand uses the same BLE API as TapXR. TapBand is coming soon (it is not for sale yet). Join the waitlist: https://www.tapwithus.com/tapband-waitlist/
The current TapXR developer firmware reports the full gesture set: taps, thumb swipes (up, down, left, right), thumb-to-finger pinches with hold, and fist with hold. Do not invent a firmware version number.
Every Tap SDK delivers raw gesture detections from the sensor. Android also offers a processed air-gesture layer (onXRAirGestureReceived) with per-finger click, drag, drop, fist begin/end, and swipe (debounce and hold latch).
Getting started
To add TAP SDK library to your project:
- Make sure you have mavenCentral in your Gradle repositories.
- Add the following Gradle dependency to your build.gradle:
implementation 'io.github.tapwithus:tap-android-sdk:0.3.6'
Getting instance of TapSdk
The entry point of TAP SDK is the com.tapwithus.sdk.TapSdk class.
If your application might be using the default TapSdk instance, a TapSdk single instance can be retrieved simply by using the TapSdkFactory helper class by calling TapSdkFactory.getDefault(context). This helper method will return a single instance of TapSdk relatively to the passed context lifecycle.
If an alternative TapSdk instance is required, or if you might be using a dependency injection framework where custom scopes is implemented, call the following commands instead, passing the appropriate arguments:
BluetoothManager bluetoothManager = new BluetoothManager(context.getApplicationContext(), BluetoothAdapter.getDefaultAdapter());
TapBluetoothManager tapBluetoothManager = new TapBluetoothManager(bluetoothManager);
TapSdk sdk = new TapSdk(tapBluetoothManager);
Key features
Input Modes
As stated in the official Tap BLE API Documentation, once you turn ON the TAP device, by default, it will be booted into Text Mode, meaning that the TAP device functions as a bluetooth keyboard, every recognized tap will be mapped to a letter, and no input data will be sent to the SDK.
When using the SDK, it is required to get the input data for a specific TAP device. In order to achieve this goal, after a connection with the TAP been established, we need to switch the TAP device to Controller Mode. In addition, it is important we switch back to Text Mode once the application goes to background, so the regular TAP behaviour will be restored.
To simplify the process TAP SDK will perform the needed actions in order to correctly connect and switch between Modes automatically, so you don't have to.
Two additional modes to Text and Controller :
Controller with Mouse HID: Behaves as a controller, but also allow the TAP to control the mouse cursor).
Raw Sensor Mode: Streams raw sensor data (from Gyro and Accelerometer sensors on TAP). More or that later...
HID availability: Text Mode and the HID modes (startTextMode, startControllerWithMouseHIDMode, startControllerWithFullHIDMode) work only on the standard firmware (every Tap Strap, and TapXR by default). TapXR on the developer firmware, which owners join through the developer program, has no HID: there sdk.isV2Tap(id) is true, so enable tap detection with startControllerMode plus startXRTappingState after connecting, and expect Text/HID calls to fall back there without an error (Text turns streams off, HID modes act as Controller).