-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Welcome to the Zebra Scanner With DataWedge wiki!
To test this application, you will need a Zebra mobile computer device aka barcode scanner with an internal imager. For this development, I use a TC 57 device with Android 8.1
This application doesn't use EMDK. It works with DataWedge so make sure DataWedge is installed on the device.
You will need to configure your DataWedge profile to enable Intent ouput.
Intent action = "com.titolim.ZebraScannerWithDataWedge"
Intent category = "android.intent.category.DEFAULT"
- This is the channel communication. Make sure you set the same values in DataWedge and in your
Then for Intent delivery method you can select "Send via startActivity" or "Broadcast intent". I implemented these two options.
StartActivity is implemented in DataWedgeScanActivity.cs class.
Broadcast is implemented in DataWedgeBroadcastReceiver.cs class. The broadcast receiver is registered on MainActivity OnResume's method.
To send back barcode information to the Xamarin.Forms MainPage page, I use Xamarin MessagingCenter service. The subscription to the MessagingCenter listening for messages is done in the MainPageViewModel class.
For more information about DataWedge setup, visit: http://techdocs.zebra.com/datawedge/6-3/guide/output/intent/
If you have any question, reach me @titolim on twitter.
Thank you!
Tito Lim