Programmatically disabling specific decoder doesn't work

// Expert user has replied.
D Dan KR 1 year 8 months ago
44 1 0

Hello,

We looked into your datacapture sample code , but this block of code doesn't work. Particularly, qr code and upc code can still be scanned. We wanna disable specific decoder programmatically. Why doesn't this kinda configuration work? What is the solution to this? Thanks

// Main bundle properties
Bundle profileConfig = new Bundle();
profileConfig.putString("PROFILE_NAME", EXTRA_PROFILENAME);
profileConfig.putString("PROFILE_ENABLED", "true");
profileConfig.putString("CONFIG_MODE", "UPDATE");  // Update specified settings in profile

// PLUGIN_CONFIG bundle properties
Bundle barcodeConfig = new Bundle();
barcodeConfig.putString("PLUGIN_NAME", "BARCODE");
barcodeConfig.putString("RESET_CONFIG", "true");

// PARAM_LIST bundle properties
Bundle barcodeProps = new Bundle();
barcodeProps.putString("scanner_selection", "auto");
barcodeProps.putString("scanner_input_enabled", "true");
barcodeProps.putString("decoder_code128", "false");
barcodeProps.putString("decoder_code39", "false");
barcodeProps.putString("decoder_ean13", "false");
barcodeProps.putString("decoder_upca", "false");
barcodeProps.putString("decoder_qrcode", "false");
barcodeProps.putString("decoder_gs1_qrcode", "false");

 

Please Register or Login to post a reply

1 Replies

J James Swinton-Bland

Hi,

Which profile are you modifying in this code? If it is a custom profile, make sure it is associated with your application.

Thanks,

James

CONTACT
Can’t find what you’re looking for?