4 Replies Latest reply on Dec 6, 2018 12:22 AM by Darryn Campbell

    Datawedge GET_CONFIG BARCODE

    Nicolas CORNET

      I need to verify Datawedge configuration of barcode plugin but the RESULT_GET_CONFIG bundle returned does not contain it

       

      Here is my code which send get_config intent :

       

      Bundle bMain = new Bundle();
      bMain.putString("PROFILE_NAME", "ZebraTest");
      bMain.putString("APP_LIST", "");//empty
      Bundle bConfig = new Bundle();
      ArrayList<String> pluginName = new ArrayList<>();
      pluginName.add("BARCODE");
      pluginName.add("INTENT");
      bConfig.putStringArrayList("PLUGIN_NAME", pluginName);
      bMain.putBundle("PLUGIN_CONFIG", bConfig);

      Intent i = new Intent();
      i.setAction("com.symbol.datawedge.api.ACTION");
      i.putExtra("com.symbol.datawedge.api.GET_CONFIG", bMain);
      MainActivity.this.sendBroadcast(i);

       

      And then in my intent receive :

      Bundle res = intent.getBundleExtra("com.symbol.datawedge.api.RESULT_GET_CONFIG");

      ArrayList<Bundle> bundleArrayList = res.getParcelableArrayList("PLUGIN_CONFIG");

       

      res bundle does not contain PLUGIN_CONFIG bundle :

      "Bundle[{PROFILE_NAME=ZebraTest, PROFILE_ENABLED=true, APP_LIST=[Bundle[mParcelledData.dataSize=132]]}]"

       

      My datawedge version is 6.6.49

      My device is a Zebra TC8000 with android 5.1.1