Я попробовал этот код:
Код: Выделить всё
String profileName = DW_PROFILENAME;
sendZebraDataWedgeIntentWithExtra("com.symbol.datawedge.api.ACTION", "com.symbol.datawedge.api.CREATE_PROFILE", profileName);
Bundle profileConfig = new Bundle();
profileConfig.putString("PROFILE_NAME", DW_PROFILENAME);
profileConfig.putString("PROFILE_ENABLED", "true");
profileConfig.putString("CONFIG_MODE", "UPDATE");
Bundle appConfig = new Bundle();
appConfig.putString("PACKAGE_NAME", activity.getPackageName());
appConfig.putStringArray("ACTIVITY_LIST", new String[]{"*"});
profileConfig.putParcelableArray("APP_LIST", new Bundle[]{appConfig});
Bundle barcodeConfig = new Bundle();
barcodeConfig.putString("PLUGIN_NAME", "BARCODE");
barcodeConfig.putString("RESET_CONFIG", "true");
Bundle barcodeProps = new Bundle();
barcodeProps.putString("decode_audio_feedback_uri","");
barcodeConfig.putBundle("PARAM_LIST", barcodeProps);
Bundle intentConfig = new Bundle();
intentConfig.putString("PLUGIN_NAME", "INTENT");
intentConfig.putString("RESET_CONFIG", "true");
Bundle intentProps = new Bundle();
intentProps.putString("intent_output_enabled", "true");
intentProps.putString("intent_action", SCAN_ACTION);
intentProps.putString("intent_category", SCAN_CATEGORY);
intentProps.putString("intent_delivery", "2");
intentConfig.putBundle("PARAM_LIST", intentProps);
ArrayList plugins=new ArrayList();
plugins.add(barcodeConfig);
plugins.add(intentConfig);
profileConfig.putParcelableArrayList("PLUGIN_CONFIG", plugins);
sendDataWedgeIntentWithExtra("com.symbol.datawedge.api.ACTION", "com.symbol.datawedge.api.SET_CONFIG", profileConfig);
Подробнее здесь: https://stackoverflow.com/questions/797 ... o-feedback