FX300 Imager

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