Hello,
I am experiencing an issue with the TC56, the Barcode scanner stops working when it going in sleep mode.
I have looked for similar tickets on the forum and found these tickets :
- TC56 disables scanner if in sleepmode (https://developer.zebra.com/thread/34688)
- Barcode scanner stops working after some time of inactivity (https://developer.zebra.com/thread/34970)
Is the recommended approach is to disable the scanner during onPause() and enable it during onResume is that correct ?
If yes, do you have a kotlin example ?
Best regards.
TC56 - Barcode scanner stops working when it going in sleep mode |
1 Replies
Hi,
>Is the recommended approach is to disable the scanner during onPause() and enable it during onResume is that correct ?
Yes, this is the recommendation for apps built with the EMDK
>If yes, do you have a kotlin example ?
I can share a variant of the standard Barcode Sample, converted to Kotlin: https://github.com/darryncampbell/samples-emdkforandroid-6_9/blob/Barco…
The recommendation for new applications is to use DataWedge rather than the EMDK (https://techdocs.zebra.com/emdk-for-android/7-6/guide/about/) and you can find an example of that for Kotlin at https://github.com/darryncampbell/DataWedgeKotlin