Barcode APIs

Shows how to scan barcodes based on selected scanner device, trigger type and a few decoder parameters.

Download Source

Product

EMDK For Android - 8.0

Devices

All supported devices

Overview

EMDK for Android can be used handle all barcode scanning entirely in Java using Barcode/Scanning APIs. These APIs work independently of any Data Capture profiles.

Notes

  • The decoder type cannot be controlled when an RS5100 is the enumerated scanner.
  • DataWedge cannot be configured for data capture through Profile Manager with EMDK 6.8 or later. Zebra recommends using the DataWedge APIs instead.

Requirements

  • Android Studio on a Mac or Windows PC with Android API 22 (or higher) installed
  • Two (2) Zebra Android devices, at least one of which is among the supported devices
  • A barcode that contains the Bluetooth MAC address of the second Zebra device (to pair with)

Using Sample App

NOTE: The appearance of sample app screens can vary by sample app version, Android version and screen size.

Before beginning, download, build and install the sample app. For help, please see the Sample App Set-up Guide.

  1. When the application starts it should look similar to the image below:

    image

  2. Select a scanner to use. If the desired scanner is external to the mobile device (Bluetooth or wired), be sure it's connected and in "SSI" mode before making a selection.

    image

  3. Point the device at a barcode and press the scan trigger. The app displays the scanned barcode data similar to the image below:

    image

NOTE: Sample apps are for demonstration purposes only and should not be used in production environments.