Setup SDK

Start building your Smart Terminal integration.

Setup SDK

Start building your Smart Terminal integration.

Adding SDK to Your Project

  1. Manual Installation
  2. Download the USB Serial SDK AAR/JAR file.
  3. Place it in your project's libs/ directory.
  4. Add the following in build.gradle:
    build.gradle
                    implementation fileTree(dir: 'libs', include: ['*.jar', '*.aar'])
    
                
  5. 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

  1. Use a USB OTG adapter if required.
  2. Grant USB permissions in the manifest.