EasyManua.ls Logo

DSIC DS5-AX - Controlling Scanning & Barcode Using AIDL

DSIC DS5-AX
81 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
DS5-AX User Manual Ver.0 2016. 03.17
60
Controlling scanning & barcode using AIDL
It is able to control scanning and barcode setting used by AIDL, such as start and stop, disabling specific symbology identification. Below is
introduction of some general part of function out of AIDL which is including many functions. Many of functions dont need to intent service
implement. Some are using only barcode tray. For details, please refer Common APIs.
Step 1: Connect to AIDL
import app.dsic.barcodetray.IBarcodeInterface;
private IBarcodeInterface mBarcode;
/*AIDL Service Connection*/
private ServiceConnection srvConn =
new ServiceConnection() {
@Override
public void onServiceConnected(ComponentName name, IBinder service) {
mBarcode = IBarcodeInterface.Stub.asInterface(service);
}
@Override
public void onServiceDisconnected(ComponentName name) {
mBarcode = null;
}

Table of Contents