DataWedge-Intent-Example-1 icon indicating copy to clipboard operation
DataWedge-Intent-Example-1 copied to clipboard

Please be aware that this application / sample is provided as-is for demonstration purposes without any guarantee of support

This is an unofficial demo application. An official version of this app is available from Zebra at https://github.com/Zebra/samples-datawedge/tree/master/BasicIntent1. I would personally recommend using the official sample, though this repository will remain for reference.

This repository is out of date - please refer to the updated 'getting started' guide at https://github.com/darryncampbell/DataWedge-GettingStarted-Samples

DataWedge Intent Example 1

This application shows how to receive barcode scans via an Intent through the DataWedge service on Zebra mobile computing devices.

Preparation: Configure DataWedge

You need to configure DataWedge on your device to output scans via Intent

  1. Launch DataWedge via Applications --> DataWedge
  2. Select 'Profile0 (default)'. Note that this is the default Profile DataWedge uses, if you have configured a profile specifically for this app then select that instead.
  3. Ensure:
  • The Profile is Enabled
  • Barcode input is Enabled
  • Intent output is Enabled
  1. Configure the Intent output as follows:
  • Intent action: com.dwexample.ACTION (This matches the value defined at https://github.com/darryncampbell/DataWedge-Intent-Example-1/blob/master/app/src/main/res/values/strings.xml)
  • Intent category: leave blank
  • Intent delivery: Broadcast intent
  • The following image shows the Intent output configuration

Datawedge Configuration

The application

Launch the application

Application

Scan a barcode. The read barcode should be shown on the UI

Application