[Datawedge][Android] Do not scan when EditText is not focusable.


Audience

Hello, I am developing apk for MC3300 with android. I am using my own Datawedge Profile to perfom scan at my application.

Is that possible to stop or suspend scanner or do not read scan until some EditText will become focusable?

In my apk, after a scan I am sendng request do server and waiting for response, and until I get response I want to block next scan.

Submitted by Anonymous (not verified) on May 04, 2019 Permalink

Hi,

You would need to use DataWedge Intents to achieve this.  In Android, detect that the edit text has focus and send an intent to DataWedge to enable the scanner (Scanner Input Plug-in) and then send another Intent to disable the scanner once the edit text loses focus

Submitted by Gracjan Swiatek on May 04, 2019 Permalink

Hi, thanks for your replay.

I am using Scanner Input Plug-in to disable and enable scanner already, but sometimes I got problems that scanner not react for my enable or disable requests, it gets stuck. I was searching about this problem and I found that there was fix for it but in LifeGuard, probably I don't have LifeGuard on my MC3300 device, any ideas what else could help?