Showing how to integrate Zebra Datawedge barcode readings into an existing .NET MAUI App. DW is sending readings via broadcast Intents and needs a specific profile setup which is part of this solution.
-
Refer to
-
This new code section detects and decodes intents sent by a free-form image capture workflow.
-
Decoded barcode values are printed on the screen
-
The related captured image is saved to disk
-
Validated on TC58 BSP 14.20.14U160 - DW 15.0.16
-
The APK for testing this feature is available here https://github.com/ZebraDevs/datawedge-MAUI-SampleApp/releases/download/v1.5/com.ndzl.dwmaui-freeformimagecapture-v1.5.apk
Instructions for a brand new installation:
- Install and run the APK
- Push the “Import Profile” button. This creates an adhoc profile under DW
- That profile scans single barcodes – doublecheck it works as such.
- Then edit the com.ndzl.dwmaui profile:
- Enable Workflows
- Enable Freeform Image Capture
- Ensure Decode&Highlight is selected.
- Press the trigger button once to start the workflow session, aiming at the barcodes
- Press the trigger again to capture the scene.
- Decoded values are printed on the screen, the image is saved in the disk
-
Screenshots
-
A "Import Profile" button is now available. By default, Profile0 is the default profile. By pushing the Import Profile button, a specific, asset-predefined profile gets imported and associated to this app.
-
Check it's working with the "DW Active Profile", to see the currently set default profile.
-
If you make changes to the "com.ndzl.dwmaui" profile, remind that a new import will overwrite your changes.
-
Code behind the "Import Profile" button is credit by Laurent Trudu - Thanks Laurent!
- "com.symbol.datawedge.decode_data" field is now decoded and logged to logcat when available in the received intent
- refer to
See the Releases section of this repository to download the DW Profile0. To install the profile, follow https://techdocs.zebra.com/datawedge/latest/guide/settings/#datawedgesettings
Alternatively, you can define a DW Profile at runtime by means of the DW Intent APIs as explained here https://techdocs.zebra.com/datawedge/11-4/guide/api/
For NG Simulscan / Multibarcode, see here #4 (comment)
Code v1.3 covers Multibarcode and was tested on TC58 Android 14 (DW 13.0.325)
Screenshots from the app v1.2 - Tested on TC53e, Android 13, DW 13.0.341