ZEBRA TC21 suspend scanner doesn’t work every time

T Tino Preglej 3 years 7 months ago
306 3 0

Hello,
we are developing an application on the android platform and we have problems with the suspend of the scanner.
We followed the instructions from the following pages :
https://techdocs.zebra.com/datawedge/7-3/guide/api/scannerinputplugin/
https://developer.zebra.com/blog/quickly-suspend-scanning-your-app-dataw...
everything is fine except that in some cases the scanner is not suspended i.e. still reads the codes.
After suspend ( i.putExtra("com.symbol.datawedge.api.SCANNER_INPUT_PLUGIN", "SUSPEND_PLUGIN") )
result is SUCCESS, scanner is in IDLE mode, but in SOME cases scanner remains in WAITING, on next scan, status is changed to IDLE.
If we call suspend command again return code is SCANNER_ALREADY_SUSPENDED.
The same can be simulated in this app if you multiple times suspend and resume scanner :
https://developer.zebra.com/blog/quickly-suspend-scanning-your-app-dataw...
Device TC21
Build number : 10-16-10.00-QG-U00-STD-HEL-04

Please Register or Login to post a reply

3 Replies

T Tino Preglej

Hi, I tagged you because it is your article and code example.

T Tino Preglej

I don't understand why a contract is needed to solve the problem or answer the question.

T Tino Preglej

No answer, Darryn?

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