'DataWedge' services automatically place scan data in an 'inFocus' field like an EditText, However I would like this functionality turned off so I can place the data where I want

I have already tried searching the internet and trawling through the settings. Awaiting response from customer service

here is some code I tried for Datalogic which did not work

        var keywedge = KeyboardWedge(mBarcodeManager)
        //keywedge.enable = BooleanProperty(0)
        keywedge.enable.set(false)

Note. I have solved the Datalogic SDK, I only need help with Honeywell (I missed a step) here is the solution ;)

        var keywedge = KeyboardWedge(mBarcodeManager)
        keywedge.enable.set(false)
        try{
            keywedge.store(mBarcodeManager,false)
        }catch (e: Exception){
            Log.e(TAG, "Cannot disable Wedge", e)
        }
1

There are 1 answers

0
Rowan Berry On BEST ANSWER

I have resolved this one some time ago sorry for the lack of update

Honeywell

   //Simply claim the scanner
   try{
        barcodeReader?.claim()
   } catch (e: ScannerUnavailableException){
        e.printStackTrace()
   }

Datalogic

var keywedge = KeyboardWedge(mBarcodeManager)
keywedge.enable.set(false)
try{
    keywedge.store(mBarcodeManager,false)
}catch (e: Exception){
    Log.e(TAG, "Cannot disable Wedge", e)
}

Zebra

//Add the Data & Status Listeners then enable
scanner?.addDataListener(this)
scanner?.addStatusListener(this)
scanner?.enable()