Android SDK Sample Applications

Overview

The Scanner Control application can be installed directly onto a mobile device. The following steps include general guidelines for installation. Menus and options may vary depending on the version of Android running.


Installation and Configuration

The Scanner Control application is available for download from the Google Play Store and is distributed within the SDK.

To install the demo application:

  1. Previous versions (earlier than v1.0.16.0 of the Zebra Scanner Control application used a different name and branding signature and must be manually uninstalled before installing the current version of the SDK demo application.

    To do this:
    1. Go to Android Settings > Application Manager (this varies depending on the version and platform of Android running).
    2. Select the Android Scanner Demo App.
    3. Select Clear Cache and Clear Data to remove any resident demo settings.
    4. Select Uninstall to remove the demo application from the system.
  2. Install the application using one of the following methods:

    Using Google Play Store:
    1. Go to https://play.google.com/store/apps/details?id=com.zebra.scannercontrol.app or search for Scanner Control in Google Play Store.
    2. Install the Scanner Control application.

    Manual Installation from the SDK package:
    1. Copy the file scanner_control_app_version.apk file included with the SDK package to the Android device.
    2. Navigate to the saved location and select the APK package file.
    3. The Android OS provides a warning that the application is from an untrusted source and requires that installation from unknown sources be enabled for this installation. This is normal. Select the option to install from unknown sources.
  3. The Android OS installs the application and installs a Scanner Control Application icon in the Apps menu.
  4. Make sure the GPS location is enabled from system settings before launching the app since it is now mandatory to have system location enabled by the app to perform under BLE mode.

Using Scanner Control Application with a Supported Device

  1. There are two ways to connect a Bluetooth scanner.
    1. Scan the pairing barcode. When the scanner and pairing barcode are configured correctly, scan the pairing barcode to connect.

      Figure 1: Sample Application Home Screen

    2. If your device has the November 2016 or later security patch you may need to click the PAIR button in the confirmation dialog that pops up in the screen.

      NOTE: Due to a Google security patch, Google CVE-2020-12856, the Android device must notify users of pairing events with a popup message (prevents silent pairing).

    3. Application can connect using the protocols SSI over Bluetooth Classic and SSI over Bluetooth LE. For SSI over Bluetooth Classic, Bluetooth address of the mobile device needs to be entered to continue using the app. These protocols can be found under App Settings.

      Figure 2: Sample Application Main Menu

      Figure 3: App Settings

      Figure 4: Device Bluetooth Address

    4. OR
    5. Pair the scanner manually. To pair the scanner manually, refer to the appropriate Product Reference Guide, User Guide, or Integration Guide for instructions on how to pair the specific device.
  2. When paired, the scanner gets displayed in the Available Device List. If the selected communication protocol (App Settings → Communication Protocol) is SSI over Bluetooth Classic and Zebra Device filtration (App Settings → Classic mode Scanner Filtration → Filter Zebra Devices) is enabled, Available Device List will only display Zebra devices.

    Figure 5: Available Scanners List

  3. If using a USB scanner:
    1. Configure its USB host mode to SNAPI.
    2. Connect it to the Android device.
    3. The scanner appears in the Available Device List.
    4. OR
    5. Select Find Cabled Scanner from the menu to display the SNAPI bar code.

      Figure 6: Sample Application Main Menu

    6. If there is a single scanner to connect, the application connects to the scanner automatically. If there are no SNAPI scanners connected, the application displays the SNAPI barcode to scan to connect.

      Figure 7: Find Cabled Scanner

    7. If multiple USB SNAPI scanners are available, the application displays the available scanner list from which the user can select the appropriate scanner for the application to connect.
    8. It may be necessary for the user to give the Android operating system permission to access the USB device. Should a permissions message display, select OK.
  4. When a device is selected in the Available Device List, the application attempts to connect to the scanner. When the connection is made, following screen is displayed.

    Figure 8: Active Scanner


Features Supported in Scanner Control App

  1. Display bar code data within a tablet / phone application.
  2. Apps using the SDK can command and control the scanner.
    1. LED and Beeper Control.
    2. Aim Control.
    3. Enable/disable Symbologies.
    4. Scanner control,
      1. Remote scanner trigger (i.e. Host app-initiated triggering).
      2. Enable/disable scanning.
    5. Event notification,
      1. Scanner available / unavailable.
      2. Scanner connected / disconnected from host.
      3. Bar code data transmission (i.e. host gets event stating barcode has been scanned).
    6. Automatic reconnection to last connected scanner (i.e. scanner goes out range and then returns).
    7. Enable/Disable the pager vibrating motor.
  3. Device Configuration (Get, Set and Store Scanner attributes).
  4. Asset tracking,
    1. Model number
    2. Serial number
    3. Date of manufacture
    4. Firmware
  5. Simplified pairing using Scan-To-Connect technology.
  6. Displays battery statistics for select cordless scanners.
  7. Enables image and video capture.
  8. Update scanner firmware.
  9. Scale functionality,
    1. Scale enable/disable.
    2. Zero scale.
    3. Reset scale.
    4. Read weight.
  10. Virtual Tether Functionality.
  11. Zebra Scanner filtration in classic mode.
  12. Auto connection to the last connected scanner on app relaunch with Bluetooth Low Energy mode.

Users new to Scanner SDK for Android can follow the video below to understand the basics of Scanner Control App.