APPLIES TO
Point Mobile devices running Android 6.0 and above
Turn On / Off Barcode Data Wedge via Intent
Try as follow code:
Turn On
Intent intent = new Intent("device.common.ENABLED_SCANNER");
intent.putExtra("EXTRA_ENABLED_SCANNER",1);
context.sendBroadcast(intent);
Turn Off
Intent intent = new Intent("device.common.ENABLED_SCANNER");
intent.putExtra("EXTRA_ENABLED_SCANNER",0);
context.sendBroadcast(intent);
RELATED ARTICLES