Android Scanner not working after SCREEN OFF

M Mar Gur 3 years 7 months ago
110 2 0

Hello

I follow the samples and have a working app to scan barcodes on two different activities.

If the TC51 is connected via cable, everything is working fine.
*) Scanning in Activity 1
*) Scanning in Activity 2
*) Screen OFF (hardware button: off)
*) Screen ON (hardware button: on)
*) Scanning in Activity 2
*) Scanning in Activity 1

=> works

If the TC51 is NOT connected via cable, after Screen ON event I get no scan result

*) Scanning in Activity 1
*) Scanning in Activity 2
*) Screen OFF (hardware button: off)
*) Screen ON (hardware button: on)
*) Scanning in Activity 2 NOT WORKING scanner state log output seems to be correct
*) Scanning in Activity 1 NOT WORKING scanner state log output seems to be correct

If i have a valid scan i see two lights on top of the device (one smaller orange one, one bigger red one)
If i turn the screen off without connected cable only the smaller organge one is visible - the other one is not working. To get the second one working I have to restart the app.

What can be the reason for this behavior?

Please Register or Login to post a reply

2 Replies

M Matt Dermody

How are you handling scanner integration? DataWedge or the EMDK? You may consider switching to DataWedge based "integration" if using the EMDK.

M Mar Gur

Hello
Im using the EMDK.

I dont know if it is possible to use DataWedge for my use case (?)

I have to initiate the scan mechanism on two (or more) different screens by hardware button and  the user should not have to create a profile manually (only app install should be to do at users side)

Is this "orange light and no red light" thing a bug in EMDK?

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