Hi,
I am using DataWedge with my app and updating its profile using intents. However, I have observed that the profile update process takes up to 2 seconds, which is not suitable for my app's needs. Since my app only has one activity, creating additional profiles is not a viable solution.
Are there any strategies to optimize the profile updating process and reduce its duration? For example, I need to frequently enable and disable multi-scanning.
Thank you for your assistance.
Any suggestions or insights would be greatly appreciated. Thank you.
fun configureBarcodeScanning( enableMultiScan: Boolean, context: Context ) { val profileConfig = Bundle() profileConfig.putString("PROFILE_NAME", DATAWEDGE_PROFILE_NAME) profileConfig.putString("PROFILE_ENABLED", "true")s profileConfig.putString("CONFIG_MODE", "UPDATE") val barcodeConfig = Bundle() barcodeConfig.putString("PLUGIN_NAME", "BARCODE") barcodeConfig.putString("RESET_CONFIG", "false") val barcodeProps = Bundle() barcodeProps.putString("scanner_selection_by_identifier", "INTERNAL_IMAGER") if (enableMultiScan) { barcodeProps.putString("scanning_mode", "3") barcodeProps.putString("instant_reporting_enable", "true"); } else { barcodeProps.putString("scanning_mode", "1") barcodeProps.putString("instant_reporting_enable", "false"); } barcodeConfig.putBundle("PARAM_LIST", barcodeProps) profileConfig.putBundle("PLUGIN_CONFIG", barcodeConfig) sendCommandBundle(context, DWInterface.DATAWEDGE_SEND_SET_CONFIG, profileConfig) }
Accepted Solution
You could try the SWITCH_PROFILE API instead to hop between two profiles with the relevant configurations: https://techdocs.zebra.com/datawedge/latest/guide/api/switchtoprofile/
2 Replies
You could try the SWITCH_PROFILE API instead to hop between two profiles with the relevant configurations: https://techdocs.zebra.com/datawedge/latest/guide/api/switchtoprofile/
Thanks for your advice; it is much better.