Zebra TC56 Keep Reinit every couple Scan EMDK or DAtaWedge

H Hiran Coello 3 years 7 months ago
8 3 0

Today, i created a simple inventory transfer location app in VS2019 with Xamarin forms (4.8Version), which it will be used in a Zebra TC56 Nougat, it is just one screen with couple of labels (Location to transfer, Serial to transfer, Item Code of serial, description of the item and the Qty of object ) the user scan the barcode of the location to transfer the material, and the serial, both using the Zebra barcode reader (Try both EMDK --4.0 and 6.0-- and Datawedge), the first is the location, it is get on the Android (EMDK) and send to the Xamarin using the messagingcenter, if the barcode start with 1L we remove the 1L and assign the remaining to the location label (We don't want user type it). then the user will start scanning the serials of the items to transfer, in here if the scanned data start with "S" it sent to our DB to retrieve the data of the serial through a web service, using the HTTPClient Post. the information is retrieved the data is assigned to the labels ItemCode, Description, and Qty, if the current location of the object is not the recently scanned location it call another web service passing the new location and the serial.
The app works, but after some scanning the app re-init (On-Create() Android runs again), i observe this on the Debug mode (Hook the TC56 to the computer, i put a stop on the call to the Enable of the Barcode reader, and see that the debug stop again on this section) and also on release mode (The App has a counter of how many serials has been transfer, but when the app re-init all labels get blank and the counter show 0).
I don't have any clue about what is causing the app to re-init, all functions have Try-Catch.

Please Register or Login to post a reply

3 Replies

H Hiran Coello

I come with good news, after many trials we ware able to resolve the issue upgrading the TC56 from 7 to 8.1. with that the gun start working as expected, i also test the test program uploaded for this case and works.

D Darryn Campbell

I have a TC52 here, I can run your code and have put a break point in onCreate().  I can scan barcodes but I get a red message saying the URI format could not be determined (no problem, perhaps I am not enrolled in your system).  But I can continually scan barcodes without the onCreate() break point ever being hit again after the initial launch, so I am unable to reproduce the issue I'm afraid.

D Darryn Campbell

onCreate() should not be getting called repeatedly.  My first question would be whether this happens whether you remove the EMDK library from your application but you say you have tested with DataWedge and still see this behaviour.  The recommendation is to use DataWedge for scanning as I am sure you have seen - how do you have DataWedge configured and what is the launchMode of your app?  https://developer.android.com/guide/topics/manifest/activity-element&nb…;

CONTACT
Can’t find what you’re looking for?