Setup SDK
v1.0.0
Start building your Smart Terminal integration.
Setup SDK
Start building your Smart Terminal integration.
Adding SDK to Your Project
- Manual Installation
- Download the USB Serial SDK AAR/JAR file.
- Place it in your project's
libs/
directory. - Add the following in
build.gradle
:build.gradleimplementation fileTree(dir: 'libs', include: ['*.jar', '*.aar'])
- Add the following permission:AndroidManifest.xml
<uses-permission android:name="android.permission.USB_PERMISSION"/> <uses-feature android:name="android.hardware.usb.host"/>
USB Communication Setup
- Use a USB OTG adapter if required.
- Grant USB permissions in the manifest.