3 Replies Latest reply on Apr 12, 2015 7:48 PM by Bruce Tonkin

    TC55: How to receive scan from programmable hardware button

    Bruce Tonkin

      Hi, I am writing an Android app for a TC55 with Jelly Bean 4.1.2 non-GMS build.

       

      I have integrated barcode scanning into my Android app by sending the com.motorolasolutions.emdk.datawedge.api.ACTION_SOFTSCANTRIGGER intent when the user presses an on-screen button. To receive the scanned text I have implemented BroadcastReceiver. There is also a DataWedge profile with the return path intent configured. This is all as described in DataCapture APIs for Scanning and MSR and is working fine.

       

      However, I can't figure out how to receive the scan results when the user presses the programmable (hardware) button. Pressing that button seems to trigger a scan and it beeps when it successfully reads a barcode. My BroadcastReceiver isn't receiving anything when the hardware button is used. It must be possible because it is working in the DWDemo app.

       

      How do I receive the scan result when the user scans using the hardware button please?

       

      Thanks