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 don’t 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;
}