I am working on an application for the MC92KK using EMDK v5.0. I have followed the samples and have gotten scanning to work, as long as I actually scan something. If I do not scan anything, the scanner turns off and will no longer respond to the hard trigger press. I am assuming this is because the scanner.read() method in the onData() call back is not being fired; thus never initializing the scanner again. How do I overcome this so that the hard trigger turns the scanner on regardless of whether data was captured or not?
Thank you.
How do I re-enable the scanner if nothing was scanned using EMDK 5? |
1 Replies
Hi Jon,
In the samples they refer to that as 'continuous scanning' mode. In code they're just re-submitting the read whenever the scanner enters the idle state, see here: samples-emdkforandroid-5_0/MainActivity.java at BarcodeSample1 · Zebra/samples-emdkforandroid-5_0 · GitHub where they call the scanner.read() method from onStatus() rather than onData().
Darryn.