Multi-barcode Scanning

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

Download Source

Product

EMDK For Android - 7.3

Devices

MC33 O, PS20 O, TC20 N/O, TC25 N/O, TC51 O, TC52 O, TC56 O, TC57 O, TC70x O, TC72 O, TC77 O

Overview

This sample demonstrates simultaneous scanning of multiple barcodes using new capabilities in the Barcode API Barcode/Scanning APIs introduced with EMDK for Android 6.8. These APIs work independently of any Data Capture profiles.

Notes

  • This sample illustrates a single use-case for implementing multi-barcode features; it is not a comprehensive example of the many ways this feature could be used.
  • DataWedge cannot be configured for data capture through Profile Manager when using EMDK-A 6.8 and higher. Zebra recommends using the DataWedge APIs instead.

The available actions in the Barcode/Scanning API are:

  • Set Scanner Device
  • Set TriggerType
  • Set Decoder Params
  • Set Reader Params
  • Set Scan Params
  • Scan barcodes based on selected features

Requirements

Android API 22 (or higher) must be installed via the SDK Manager before attempting to load this sample.

Loading the Sample Application

The following guide will walk you through setting up the EMDK samples in your IDE.

Using This Sample

  1. When the application starts it should look like the following.

    img

  2. Set scanner to "Serial SSI Scanner", which is the default one".

    img

  3. Set Trigger Type to "HARD".

    img

Note: Trigger Type "HARD" lets you scan the barcode using device's hard scan key whereas "SOFT" allows you to scan without using devic's hard scan key.

  1. Keep all checkboxes checked for decoder params and this is how it should look after setting all fields.

    img

  2. Click "Start" button and the status will be updated.

    img

  3. Since we selected Trigger Type as "HARD", press the hard scan key of Symbol device and scan a particular barcode. It will get the scanned barcode data in "Data" field of UI.

    img