1. Home
  2. Docs
  3. Handheld Common
  4. RFID
  5. Usage

Usage

Keyboard wedge

To you use the RFID app with a existing app that has a input field (e.g. for barcode scanning), you do not need to make any changes to your code.

Make sure to set the Output method to either Paste or Keyboard, enable the Trigger setting and assign one of the hardware keys to F7.

Broadcast

If you just want to receive the tag ID or data in your own code without any additional control, you can use a broadcast receiver.

Make sure to set the Output method to either Broadcast, enable the Trigger setting and assign one of the hardware keys to F7. Register the receiver as shown below:

Start and stop scan

If you want to control the start and stop of a scan from your code instead (or in addition to) a hardware button, you can send broadcasts to the RFID app.

Scan activity

If you don’t want to build your own user interface for scanning, you can also directly start the scan activity provided by the app.

Setup with MaxGo Staging

When installing the app using MaxGo Staging, you can use a intent command to to apply a configuration. See here for details.

To start the RFID service during setup, create a separate intent command with the “Intent type” set to “Action” and the “Intent value” set to com.handheldgroup.rfid.START_SERVICE.