# UsbHid **Repository Path**: yoours/UsbHid ## Basic Information - **Project Name**: UsbHid - **Description**: A custom usb hid library for Android - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-12-09 - **Last Updated**: 2025-12-27 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # UsbHid The custom USB HID host library for Android. It supports SDK Version above than or equals to 12 # Usage ``` compile "com.benlypan:UsbHid:0.1.0" ``` # QuickStart ``` UsbHidDevice device = UsbHidDevice.factory(context, vid, pid); device.open(this, new OnUsbHidDeviceListener() { @Override public void onUsbHidDeviceConnected(UsbHidDevice device) { byte[] sendBuffer = new byte[64]; sendBuffer[0] = 0x01; device.write(sendBuffer); byte[] readBuffer = device.read(64); } @Override public void onUsbHidDeviceConnectFailed(UsbHidDevice device) { } }); ``` For detail, please read the source code. # License MIT