FX300,2 Imager (Only for Android 6)

The FAMOCO FX300,2 device has a build in 2D scanner.

Managed laser scanner

Behavior

Scanning: To scan a barcode the user needs to click on the Scan button.

The scan will stop once:

  • The button is released
  • A barcode is decoded

Configuration options

The following options are configurable via the Android Settings or via Famoco Layer.

  • Enabled: true (default) / false.
  • Scan buttons: right + left (default), right, left.
  • Post scan action: none, next field, inject line end (default).

Demo application

To download the Demo application, please click here:

Unmanaged laser scanner

Use case

Sometimes these basic default behaviors mentioned above are not enough.

In that case you can use the laser scanner SDK.

Embedding this in your application will expose the extended capabilities of the laser scanner.

Legacy caveat

There is a need to disable the managed laser scanner in order to use the laser scanner SDK.

Requirements

  • Default behavior enabled: false.
  • Permissions:
<uses-permission android:name="android.permission.BARCODE_SCANNER" />
<uses-permission android:name="android.permission.CAMERA" />

Embedding the laser scanner SDK in an application

  • Include the laser scanner permissions in the Android application manifest.
  • Include the java archive SDK in your Android application project (under libs/).

Java SDK

To embed those capabilities you will need the following elements:

Demo applications

To download the Demo application, please click here

FX300 Imager (Only for Android 4.4)

The FAMOCO FX300 device has a build in 2D scanner.
There are two options available to use the scanner.

  • Install the FAMOCO APK built for this purpose
  • Implement the scanner APIs directly in your application

FAMOCO App

Download and install the FAMOCO scanning application here.

Use this code to start the scanner from your application :

private static final int REQUEST_CODE = 1;

public void startScanner(View v) {
    try {
        Intent intent = new Intent(“com.famoco.intent.action.SCAN_BARCODE”);
        startActivityForResult(intent, REQUEST_CODE);
    } catch (ActivityNotFoundException e) {
    Log.e(TAG, e.getMessage(), e);
    }
}

The scanning result will be returned in the same activity that requested the scan by calling startScanner().

To obtain the result, you must override the following function in your activity :

@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
    super.onActivityResult(requestCode, resultCode, data);

    if (resultCode == RESULT_OK && REQUEST_CODE == requestCode) {
        String barcode = data.getStringExtra(“barcode”);
    }
}


Scanner API

  • Download SDK and documentation here
  • Download Example application here