Integration Guide
Everything you need to integrate the AXL SDK into your Android POS app — from adding the AAR to handling the full RFID reading lifecycle.
Overview
What the SDK does, how it fits into your app, and how the device communicates.
Requirements
Build environment, Android API levels, and dependencies.
Quick Start
The minimal integration — five steps, ten lines of code.
Installation
Add the AAR, configure Gradle, and update your AndroidManifest.
Initialization
Initialize the SDK singleton and set your listener before calling connect.
USB Connection
Connect to the AXL FLAT device over USB OTG and handle the connection lifecycle.
Bluetooth (BLE)
Connect wirelessly for configuration updates. BLE supports config only when a USB host is active.
RFID Scanning
Start, pause, and stop the RFID reader. Handle the tag stream and deduplication.
UPC Mode
When the device is configured with upc_mode = true, tags are aggregated and returned as UPC codes with counts instead of raw EPCs.
Checkout
Confirm a transaction. The SDK automatically batches large EPC lists and sequences the commands.
Disconnecting
Graceful disconnect, app-close handling, and port release.
SdkListener Callbacks
All callbacks delivered on the main thread. Required methods must be implemented; optional ones have default no-op implementations.
SDK Modes
The SDK tracks its own state. Read it at any time with sdk.getCurrentMode().
Error Codes
All errors arrive via onError(String). The string always starts with [Exxx].
Device Configuration
Push hardware settings — region, antennas, network — to the device at runtime over USB or BLE.
Diagnostics & Logging
The SDK has a built-in ring buffer, a real-time log listener, and a device-side log callback for field support.
Changelog
All notable changes. Follows Keep a Changelog.