6 Replies Latest reply on Mar 24, 2016 9:14 PM by Charitha Mallawaarachchi

    ArrayIndexOutOfBoundsException

    John Foley

      I started seeing this exception pop up in Logcat logs.

       

      java.lang.ArrayIndexOutOfBoundsException: length=18; index=18

      com.symbol.emdk.EMDKResults.getExtStatusCodeFromXMLString(EMDKResults.java:516)

      com.symbol.emdk.EMDKResults.<init>(EMDKResults.java:330)

      com.symbol.emdk.ProfileManager.processProfile(ProfileManager.java:296)

      com.qvs.androidshell.devices.EmdkDevices.activateProfile(EmdkDevices.java:81)

      com.qvs.androidshell.devices.EmdkDevices$1.run(EmdkDevices.java:62)

       

      Anyone else see it or know what it is?

        • Re: ArrayIndexOutOfBoundsException
          Bill Hecox

          Hey John, The logs you've posted are not enough to debug the issue. Could you provide more, or some example code that exhibits this issue?

            • Re: ArrayIndexOutOfBoundsException
              John Foley

              Hi Bill,

               

              A little background here.  I was running into problems using the processProfile

              API to dynamically enable and disable the barcode scanner and MSR.

               

               

              See this issue: https://developer.zebra.com/thread/30543

               

               

              Please note Rob Galvin's suggested method to get the behavior I needed.  This

              is the solution I implemented.

               

               

              I was told by someone (can't remember who) that I would need to processProfile()

              on each of my four profiles at app initialization time.  I beleive this is

              becuase there is no way for my app to know if the profiles are already loaded

              into the device.

               

               

              I just spark up a thread when my app is opened and processProfile on each

              of the four.  This is where the exception is thrown.  The calls to

                              activateProfile("ScanOffMsrOn");

                              and

                              activateProfile("ScanOnMsrOn");

              trigger the exception.

               

               

              The MSR is not attached in these scenarios.

               

               

              @Override

                  public void onOpened(EMDKManager emdkManager) {

                      baseLog(Level.DEBUG, "EMDKListener.onOpened");

                      this.profileManager = (ProfileManager) emdkManager.getInstance(EMDKManager.FEATURE_TYPE.PROFILE);

               

               

                      new Thread(new Runnable() {

                          @Override

                          public void run() {

                              baseLog(Level.DEBUG, "Starting profile initialization");

                              activateProfile("ScanOffMsrOff");

                              activateProfile("ScanOnMsrOff");

                              activateProfile("ScanOffMsrOn");

                              activateProfile("ScanOnMsrOn");

               

               

                              setDefaultProfile();

               

               

                              activateProfileWithIntent(makeProfileName());

               

               

                              baseLog(Level.DEBUG, "profile initialization complete");

                          }

                      }).start();

                  }

               

               

              Here is the code for activateProfile()

               

               

                  public void activateProfile(String profileName) {

                      if (profileManager != null) {

                          EMDKResults results = profileManager.processProfile(profileName, ProfileManager.PROFILE_FLAG.SET, (String[]) null);

                          baseLog(Level.DEBUG, "processProfile(" + profileName + ") status code " + results.statusCode + " msg: " + results.getStatusString());

                      }

                  }

              • Re: ArrayIndexOutOfBoundsException
                John Foley

                Also, here is my config

                <?xml version="1.0" encoding="UTF-8"?>
                <wap-provisioningdoc>

                   <characteristic type="ProfileInfo">

                   <parm name="created_wizard_version" value="3.1.20"/>

                   </characteristic>

                   <characteristic type="Profile">

                   <parm name="ProfileName" value="ScanOffMsrOff"/>

                   <parm name="ModifiedDate" value="2015-06-17 11:26:12"/>

                   <parm name="TargetSystemVersion" value="4.4"/>

                   <characteristic type="MSR" version="0.1">

                   <parm name="emdk_name" value="theMsr"/>

                   <parm name="msr_input_enabled" value="false"/>

                   </characteristic>

                   <characteristic type="Barcode" version="3.1">

                   <parm name="emdk_name" value="theScanner"/>

                   <parm name="scanner_input_enabled" value="false"/>

                   <parm name="ScannerSelection" value="AUTO"/>

                   <characteristic type="Decoders">

                   <parm name="decoder_upca" value="Default"/>

                   <parm name="decoder_upce0" value="Default"/>

                   <parm name="decoder_ean13" value="Default"/>

                   <parm name="decoder_ean8" value="Default"/>

                   <parm name="decoder_code128" value="Default"/>

                   <parm name="decoder_code39" value="Default"/>

                   <parm name="decoder_i2of5" value="Default"/>

                   <parm name="decoder_gs1_databar" value="Default"/>

                   <parm name="decoder_gs1_databar_lim" value="Default"/>

                   <parm name="decoder_gs1_databar_exp" value="Default"/>

                   <parm name="decoder_datamatrix" value="Default"/>

                   <parm name="decoder_qrcode" value="Default"/>

                   <parm name="decoder_pdf417" value="Default"/>

                   <parm name="decoder_composite_ab" value="Default"/>

                   <parm name="decoder_composite_c" value="Default"/>

                   <parm name="decoder_microqr" value="Default"/>

                   <parm name="decoder_aztec" value="Default"/>

                   <parm name="decoder_maxicode" value="Default"/>

                   <parm name="decoder_micropdf" value="Default"/>

                   <parm name="decoder_uspostnet" value="Default"/>

                   <parm name="decoder_usplanet" value="Default"/>

                   <parm name="decoder_uk_postal" value="Default"/>

                   <parm name="decoder_japanese_postal" value="Default"/>

                   <parm name="decoder_australian_postal" value="Default"/>

                   <parm name="decoder_canadian_postal" value="Default"/>

                   <parm name="decoder_dutch_postal" value="Default"/>

                   <parm name="decoder_us4state" value="Default"/>

                   <parm name="decoder_us4state_fics" value="Default"/>

                   <parm name="decoder_codabar" value="Default"/>

                   <parm name="decoder_msi" value="Default"/>

                   <parm name="decoder_code93" value="Default"/>

                   <parm name="decoder_trioptic39" value="Default"/>

                   <parm name="decoder_d2of5" value="Default"/>

                   <parm name="decoder_chinese_2of5" value="Default"/>

                   <parm name="decoder_korean_3of5" value="Default"/>

                   <parm name="decoder_code11" value="Default"/>

                   <parm name="decoder_tlc39" value="Default"/>

                   <parm name="decoder_mailmark" value="Default"/>

                   <parm name="decoder_hanxin" value="Default"/>

                   <parm name="decoder_signature" value="Default"/>

                   <parm name="decoder_webcode" value="Default"/>

                   <parm name="decoder_matrix_2of5" value="Default"/>

                   <parm name="decoder_upce1" value="Default"/>

                   </characteristic>

                   <characteristic type="DecoderParams">

                   <characteristic type="UPCA">

                   <parm name="decoder_upca_report_check_digit" value="Default"/>

                   <parm name="decoder_upca_preamble" value="Default"/>

                   </characteristic>

                   <characteristic type="UPCE0">

                   <parm name="decoder_upce0_report_check_digit" value="Default"/>

                   <parm name="decoder_upce0_preamble" value="Default"/>

                   <parm name="decoder_upce0_convert_to_upca" value="Default"/>

                   </characteristic>

                   <characteristic type="EAN8">

                   <parm name="decoder_ean8_convert_to_ean13" value="Default"/>

                   </characteristic>

                   <characteristic type="Code128">

                   <parm name="decoder_code128_length1" value="0"/>

                   <parm name="decoder_code128_length2" value="55"/>

                   <parm name="decoder_code128_redundancy" value="Default"/>

                   <parm name="decoder_code128_enable_plain" value="Default"/>

                   <parm name="decoder_code128_enable_ean128" value="Default"/>

                   <parm name="decoder_code128_enable_isbt128" value="Default"/>

                   <parm name="decoder_code128_isbt128_concat_mode" value="Default"/>

                   <parm name="decoder_code128_check_isbt_table" value="Default"/>

                   <parm name="decoder_code128_security_level" value="Default"/>

                   <parm name="code128_enable_marginless_decode" value="Default"/>

                   <parm name="code128_ignore_fnc4" value="Default"/>

                   </characteristic>

                   <characteristic type="Code39">

                   <parm name="decoder_code39_length1" value="0"/>

                   <parm name="decoder_code39_length2" value="55"/>

                   <parm name="decoder_code39_verify_check_digit" value="Default"/>

                   <parm name="decoder_code39_report_check_digit" value="Default"/>

                   <parm name="decoder_code39_full_ascii" value="Default"/>

                   <parm name="decoder_code39_redundancy" value="Default"/>

                   <parm name="decoder_code39_convert_to_code32" value="Default"/>

                   <parm name="decoder_code39_report_code32_prefix" value="Default"/>

                   <parm name="decoder_code39_security_level" value="Default"/>

                   <parm name="code39_enable_marginless_decode" value="Default"/>

                   </characteristic>

                   <characteristic type="Interleaved_2of5">

                   <parm name="decoder_i2of5_length1" value="14"/>

                   <parm name="decoder_i2of5_length2" value="10"/>

                   <parm name="decoder_i2of5_redundancy" value="Default"/>

                   <parm name="decoder_i2of5_check_digit" value="Default"/>

                   <parm name="decoder_i2of5_report_check_digit" value="Default"/>

                   <parm name="decoder_itf14_convert_to_ean13" value="Default"/>

                   <parm name="decoder_i2of5_security_level" value="Default"/>

                   <parm name="i20f5_enable_marginless_decode" value="Default"/>

                   </characteristic>

                   <characteristic type="GS1_Databar_Limited">

                   <parm name="decoder_gs1_lim_security_level" value="Default"/>

                   </characteristic>

                   <characteristic type="Composite_AB">

                   <parm name="decoder_composite_ab_ucc_link_mode" value="Default"/>

                   </characteristic>

                   <characteristic type="US_Postnet">

                   <parm name="decoder_uspostnet_report_check_digit" value="Default"/>

                   </characteristic>

                   <characteristic type="US_Planet">

                   <parm name="decoder_usplanet_report_check_digit" value="Default"/>

                   </characteristic>

                   <characteristic type="UK_Postal">

                   <parm name="decoder_uk_postal_report_check_digit" value="Default"/>

                   </characteristic>

                   <characteristic type="Codabar">

                   <parm name="decoder_codabar_length1" value="6"/>

                   <parm name="decoder_codabar_length2" value="55"/>

                   <parm name="decoder_codabar_redundancy" value="Default"/>

                   <parm name="decoder_codabar_clsi_editing" value="Default"/>

                   <parm name="decoder_codabar_notis_editing" value="Default"/>

                   </characteristic>

                   <characteristic type="MSI">

                   <parm name="decoder_msi_length1" value="4"/>

                   <parm name="decoder_msi_length2" value="55"/>

                   <parm name="decoder_msi_redundancy" value="Default"/>

                   <parm name="decoder_msi_check_digit" value="Default"/>

                   <parm name="decoder_msi_check_digit_scheme" value="Default"/>

                   <parm name="decoder_msi_report_check_digit" value="Default"/>

                   </characteristic>

                   <characteristic type="Code93">

                   <parm name="decoder_code93_length1" value="0"/>

                   <parm name="decoder_code93_length2" value="55"/>

                   <parm name="decoder_code93_redundancy" value="Default"/>

                   </characteristic>

                   <characteristic type="Trioptic_39">

                   <parm name="decoder_trioptic39_redundancy" value="Default"/>

                   </characteristic>

                   <characteristic type="Discrete_2of5">

                   <parm name="decoder_d2of5_length1" value="0"/>

                   <parm name="decoder_d2of5_length2" value="14"/>

                   <parm name="decoder_d2of5_redundancy" value="Default"/>

                   </characteristic>

                   <characteristic type="Code11">

                   <parm name="decoder_code11_length1" value="4"/>

                   <parm name="decoder_code11_length2" value="55"/>

                   <parm name="decoder_code11_redundancy" value="Default"/>

                   <parm name="decoder_code11_verify_check_digit" value="Default"/>

                   <parm name="decoder_code11_report_check_digit" value="Default"/>

                   </characteristic>

                   <characteristic type="Han_Xin">

                   <parm name="decoder_hanxin_inverse" value="Default"/>

                   </characteristic>

                   <characteristic type="Matrix_2of5">

                   <parm name="decoder_matrix_2of5_length1" value="10"/>

                   <parm name="decoder_matrix_2of5_length2" value="0"/>

                   <parm name="decoder_matrix_2of5_redundancy" value="Default"/>

                   <parm name="decoder_matrix_2of5_report_check_digit" value="Default"/>

                   <parm name="decoder_matrix_2of5_verify_check_digit" value="Default"/>

                   </characteristic>

                   <characteristic type="UPCE1">

                   <parm name="decoder_upce1_report_check_digit" value="Default"/>

                   <parm name="decoder_upce1_preamble" value="Default"/>

                   <parm name="decoder_upce1_convert_to_upca" value="Default"/>

                   </characteristic>

                   </characteristic>

                   <characteristic type="UpcEanParams">

                   <parm name="upcean_security_level" value="Default"/>

                   <parm name="upcean_supplemental2" value="Default"/>

                   <parm name="upcean_supplemental5" value="Default"/>

                   <parm name="upcean_supplemental_mode" value="Default"/>

                   <parm name="upcean_retry_count" value="10"/>

                   <parm name="upcean_random_weight_check_digit" value="Default"/>

                   <parm name="upcean_linear_decode" value="Default"/>

                   <parm name="upcean_bookland" value="Default"/>

                   <parm name="upcean_coupon" value="Default"/>

                   <parm name="upcean_coupon_report" value="Default"/>

                   <parm name="upcean_ean_zero_extend" value="Default"/>

                   <parm name="upcean_bookland_format" value="Default"/>

                   <parm name="databar_to_upc_ean" value="Default"/>

                   <parm name="upc_enable_marginless_decode" value="Default"/>

                   </characteristic>

                   <characteristic type="ReaderParams">

                   <parm name="beam_timer" value="5000"/>

                   <parm name="Adaptive_Scanning" value="Default"/>

                   <parm name="Beam_Width" value="Default"/>

                   <parm name="power_mode" value="Default"/>

                   <parm name="mpd_mode" value="Default"/>

                   <parm name="reader_mode" value="Default"/>

                   <parm name="linear_security_level" value="Default"/>

                   <parm name="picklist" value="Default"/>

                   <parm name="aim_type" value="Default"/>

                   <parm name="same_barcode_timeout" value="500"/>

                   <parm name="different_barcode_timeout" value="500"/>

                   <parm name="illumination_mode" value="Default"/>

                   <parm name="lcd_mode" value="Default"/>

                   <parm name="delay_to_low_power_mode" value="Default"/>

                   <parm name="illumination_brightness" value="10"/>

                   <parm name="inverse_1d_mode" value="Default"/>

                   <parm name="1d_marginless_decode_effort_level" value="Default"/>

                   <parm name="poor_quality_bcdecode_effort_level" value="Default"/>

                   <parm name="viewfinder_mode" value="Default"/>

                   </characteristic>

                   <characteristic type="ScanParams">

                   <parm name="code_id_type" value="Default"/>

                   <parm name="volume_slider_type" value="Default"/>

                   <parm name="decode_audio_feedback_uri" value="system/media/audio/notifications/decode-short.ogg"/>

                   <parm name="decode_haptic_feedback" value="Default"/>

                   <parm name="bt_disconnect_on_exit" value="Default"/>

                   <parm name="connection_idle_time" value="600"/>

                   <parm name="establish_connection_time" value="45"/>

                   <parm name="display_bt_address_barcode" value="Default"/>

                   <parm name="good_decode_led_timer" value="75"/>

                   <parm name="decoding_led_feedback" value="Default"/>

                   </characteristic>

                   </characteristic>

                 

                   <characteristic type="Intent" version="0.1">

                   <parm name="emdk_name" value="dataCaptureIntent"/>

                   <parm name="intent_output_enabled" value="true"/>

                   <parm name="intent_action" value="com.qvs.androidshell.RECVR"/>

                   <parm name="intent_category" value="android.intent.category.DEFAULT"/>

                   <parm name="intent_delivery" value="0"/>

                   <characteristic type="BasicDataFormatting">

                   <parm name="bdf_enabled" value="true"/>

                   <parm name="bdf_prefix" value=""/>

                   <parm name="bdf_suffix" value=""/>

                   <parm name="bdf_send_data" value="true"/>

                   <parm name="bdf_send_hex" value="Default"/>

                   <parm name="bdf_send_tab" value="Default"/>

                   <parm name="bdf_send_enter" value="Default"/>

                   </characteristic>

                   </characteristic>

                   <characteristic type="Keystroke" version="0.1">

                   <parm name="emdk_name" value="keystrokeInput"/>

                   <parm name="ime_output_enabled" value="false"/>

                   <parm name="keystroke_action_char" value="Default"/>

                   <characteristic type="BasicDataFormatting">

                   <parm name="bdf_enabled" value="Default"/>

                   <parm name="bdf_prefix" value=""/>

                   <parm name="bdf_suffix" value=""/>

                   <parm name="bdf_send_data" value="Default"/>

                   <parm name="bdf_send_hex" value="Default"/>

                   <parm name="bdf_send_tab" value="Default"/>

                   <parm name="bdf_send_enter" value="Default"/>

                   </characteristic>

                   </characteristic>

                 

                   </characteristic>

                   <characteristic type="Profile">

                   <parm name="ProfileName" value="ScanOnMsrOff"/>

                   <parm name="ModifiedDate" value="2015-06-17 11:26:12"/>

                   <parm name="TargetSystemVersion" value="4.4"/>

                   <characteristic type="MSR" version="0.1">

                   <parm name="emdk_name" value="theMsr"/>

                   <parm name="msr_input_enabled" value="false"/>

                   </characteristic>

                   <characteristic type="Barcode" version="3.1">

                   <parm name="emdk_name" value="theScanner"/>

                   <parm name="scanner_input_enabled" value="true"/>

                   <parm name="ScannerSelection" value="AUTO"/>

                   <characteristic type="Decoders">

                   <parm name="decoder_upca" value="Default"/>

                   <parm name="decoder_upce0" value="Default"/>

                   <parm name="decoder_ean13" value="Default"/>

                   <parm name="decoder_ean8" value="Default"/>

                   <parm name="decoder_code128" value="Default"/>

                   <parm name="decoder_code39" value="Default"/>

                   <parm name="decoder_i2of5" value="Default"/>

                   <parm name="decoder_gs1_databar" value="Default"/>

                   <parm name="decoder_gs1_databar_lim" value="Default"/>

                   <parm name="decoder_gs1_databar_exp" value="Default"/>

                   <parm name="decoder_datamatrix" value="Default"/>

                   <parm name="decoder_qrcode" value="Default"/>

                   <parm name="decoder_pdf417" value="Default"/>

                   <parm name="decoder_composite_ab" value="Default"/>

                   <parm name="decoder_composite_c" value="Default"/>

                   <parm name="decoder_microqr" value="Default"/>

                   <parm name="decoder_aztec" value="Default"/>

                   <parm name="decoder_maxicode" value="Default"/>

                   <parm name="decoder_micropdf" value="Default"/>

                   <parm name="decoder_uspostnet" value="Default"/>

                   <parm name="decoder_usplanet" value="Default"/>

                   <parm name="decoder_uk_postal" value="Default"/>

                   <parm name="decoder_japanese_postal" value="Default"/>

                   <parm name="decoder_australian_postal" value="Default"/>

                   <parm name="decoder_canadian_postal" value="Default"/>

                   <parm name="decoder_dutch_postal" value="Default"/>

                   <parm name="decoder_us4state" value="Default"/>

                   <parm name="decoder_us4state_fics" value="Default"/>

                   <parm name="decoder_codabar" value="Default"/>

                   <parm name="decoder_msi" value="Default"/>

                   <parm name="decoder_code93" value="Default"/>

                   <parm name="decoder_trioptic39" value="Default"/>

                   <parm name="decoder_d2of5" value="Default"/>

                   <parm name="decoder_chinese_2of5" value="Default"/>

                   <parm name="decoder_korean_3of5" value="Default"/>

                   <parm name="decoder_code11" value="Default"/>

                   <parm name="decoder_tlc39" value="Default"/>

                   <parm name="decoder_mailmark" value="Default"/>

                   <parm name="decoder_hanxin" value="Default"/>

                   <parm name="decoder_signature" value="Default"/>

                   <parm name="decoder_webcode" value="Default"/>

                   <parm name="decoder_matrix_2of5" value="Default"/>

                   <parm name="decoder_upce1" value="Default"/>

                   </characteristic>

                   <characteristic type="DecoderParams">

                   <characteristic type="UPCA">

                   <parm name="decoder_upca_report_check_digit" value="Default"/>

                   <parm name="decoder_upca_preamble" value="Default"/>

                   </characteristic>

                   <characteristic type="UPCE0">

                   <parm name="decoder_upce0_report_check_digit" value="Default"/>

                   <parm name="decoder_upce0_preamble" value="Default"/>

                   <parm name="decoder_upce0_convert_to_upca" value="Default"/>

                   </characteristic>

                   <characteristic type="EAN8">

                   <parm name="decoder_ean8_convert_to_ean13" value="Default"/>

                   </characteristic>

                   <characteristic type="Code128">

                   <parm name="decoder_code128_length1" value="0"/>

                   <parm name="decoder_code128_length2" value="55"/>

                   <parm name="decoder_code128_redundancy" value="Default"/>

                   <parm name="decoder_code128_enable_plain" value="Default"/>

                   <parm name="decoder_code128_enable_ean128" value="Default"/>

                   <parm name="decoder_code128_enable_isbt128" value="Default"/>

                   <parm name="decoder_code128_isbt128_concat_mode" value="Default"/>

                   <parm name="decoder_code128_check_isbt_table" value="Default"/>

                   <parm name="decoder_code128_security_level" value="Default"/>

                   <parm name="code128_enable_marginless_decode" value="Default"/>

                   <parm name="code128_ignore_fnc4" value="Default"/>

                   </characteristic>

                   <characteristic type="Code39">

                   <parm name="decoder_code39_length1" value="0"/>

                   <parm name="decoder_code39_length2" value="55"/>

                   <parm name="decoder_code39_verify_check_digit" value="Default"/>

                   <parm name="decoder_code39_report_check_digit" value="Default"/>

                   <parm name="decoder_code39_full_ascii" value="Default"/>

                   <parm name="decoder_code39_redundancy" value="Default"/>

                   <parm name="decoder_code39_convert_to_code32" value="Default"/>

                   <parm name="decoder_code39_report_code32_prefix" value="Default"/>

                   <parm name="decoder_code39_security_level" value="Default"/>

                   <parm name="code39_enable_marginless_decode" value="Default"/>

                   </characteristic>

                   <characteristic type="Interleaved_2of5">

                   <parm name="decoder_i2of5_length1" value="14"/>

                   <parm name="decoder_i2of5_length2" value="10"/>

                   <parm name="decoder_i2of5_redundancy" value="Default"/>

                   <parm name="decoder_i2of5_check_digit" value="Default"/>

                   <parm name="decoder_i2of5_report_check_digit" value="Default"/>

                   <parm name="decoder_itf14_convert_to_ean13" value="Default"/>

                   <parm name="decoder_i2of5_security_level" value="Default"/>

                   <parm name="i20f5_enable_marginless_decode" value="Default"/>

                   </characteristic>

                   <characteristic type="GS1_Databar_Limited">

                   <parm name="decoder_gs1_lim_security_level" value="Default"/>

                   </characteristic>

                   <characteristic type="Composite_AB">

                   <parm name="decoder_composite_ab_ucc_link_mode" value="Default"/>

                   </characteristic>

                   <characteristic type="US_Postnet">

                   <parm name="decoder_uspostnet_report_check_digit" value="Default"/>

                   </characteristic>

                   <characteristic type="US_Planet">

                   <parm name="decoder_usplanet_report_check_digit" value="Default"/>

                   </characteristic>

                   <characteristic type="UK_Postal">

                   <parm name="decoder_uk_postal_report_check_digit" value="Default"/>

                   </characteristic>

                   <characteristic type="Codabar">

                   <parm name="decoder_codabar_length1" value="6"/>

                   <parm name="decoder_codabar_length2" value="55"/>

                   <parm name="decoder_codabar_redundancy" value="Default"/>

                   <parm name="decoder_codabar_clsi_editing" value="Default"/>

                   <parm name="decoder_codabar_notis_editing" value="Default"/>

                   </characteristic>

                   <characteristic type="MSI">

                   <parm name="decoder_msi_length1" value="4"/>

                   <parm name="decoder_msi_length2" value="55"/>

                   <parm name="decoder_msi_redundancy" value="Default"/>

                   <parm name="decoder_msi_check_digit" value="Default"/>

                   <parm name="decoder_msi_check_digit_scheme" value="Default"/>

                   <parm name="decoder_msi_report_check_digit" value="Default"/>

                   </characteristic>

                   <characteristic type="Code93">

                   <parm name="decoder_code93_length1" value="0"/>

                   <parm name="decoder_code93_length2" value="55"/>

                   <parm name="decoder_code93_redundancy" value="Default"/>

                   </characteristic>

                   <characteristic type="Trioptic_39">

                   <parm name="decoder_trioptic39_redundancy" value="Default"/>

                   </characteristic>

                   <characteristic type="Discrete_2of5">

                   <parm name="decoder_d2of5_length1" value="0"/>

                   <parm name="decoder_d2of5_length2" value="14"/>

                   <parm name="decoder_d2of5_redundancy" value="Default"/>

                   </characteristic>

                   <characteristic type="Code11">

                   <parm name="decoder_code11_length1" value="4"/>

                   <parm name="decoder_code11_length2" value="55"/>

                   <parm name="decoder_code11_redundancy" value="Default"/>

                   <parm name="decoder_code11_verify_check_digit" value="Default"/>

                   <parm name="decoder_code11_report_check_digit" value="Default"/>

                   </characteristic>

                   <characteristic type="Han_Xin">

                   <parm name="decoder_hanxin_inverse" value="Default"/>

                   </characteristic>

                   <characteristic type="Matrix_2of5">

                   <parm name="decoder_matrix_2of5_length1" value="10"/>

                   <parm name="decoder_matrix_2of5_length2" value="0"/>

                   <parm name="decoder_matrix_2of5_redundancy" value="Default"/>

                   <parm name="decoder_matrix_2of5_report_check_digit" value="Default"/>

                   <parm name="decoder_matrix_2of5_verify_check_digit" value="Default"/>

                   </characteristic>

                   <characteristic type="UPCE1">

                   <parm name="decoder_upce1_report_check_digit" value="Default"/>

                   <parm name="decoder_upce1_preamble" value="Default"/>

                   <parm name="decoder_upce1_convert_to_upca" value="Default"/>

                   </characteristic>

                   </characteristic>

                   <characteristic type="UpcEanParams">

                   <parm name="upcean_security_level" value="Default"/>

                   <parm name="upcean_supplemental2" value="Default"/>

                   <parm name="upcean_supplemental5" value="Default"/>

                   <parm name="upcean_supplemental_mode" value="Default"/>

                   <parm name="upcean_retry_count" value="10"/>

                   <parm name="upcean_random_weight_check_digit" value="Default"/>

                   <parm name="upcean_linear_decode" value="Default"/>

                   <parm name="upcean_bookland" value="Default"/>

                   <parm name="upcean_coupon" value="Default"/>

                   <parm name="upcean_coupon_report" value="Default"/>

                   <parm name="upcean_ean_zero_extend" value="Default"/>

                   <parm name="upcean_bookland_format" value="Default"/>

                   <parm name="databar_to_upc_ean" value="Default"/>

                   <parm name="upc_enable_marginless_decode" value="Default"/>

                   </characteristic>

                   <characteristic type="ReaderParams">

                   <parm name="beam_timer" value="5000"/>

                   <parm name="Adaptive_Scanning" value="Default"/>

                   <parm name="Beam_Width" value="Default"/>

                   <parm name="power_mode" value="Default"/>

                   <parm name="mpd_mode" value="Default"/>

                   <parm name="reader_mode" value="Default"/>

                   <parm name="linear_security_level" value="Default"/>

                   <parm name="picklist" value="Default"/>

                   <parm name="aim_type" value="Default"/>

                   <parm name="same_barcode_timeout" value="500"/>

                   <parm name="different_barcode_timeout" value="500"/>

                   <parm name="illumination_mode" value="Default"/>

                   <parm name="lcd_mode" value="Default"/>

                   <parm name="delay_to_low_power_mode" value="Default"/>

                   <parm name="illumination_brightness" value="10"/>

                   <parm name="inverse_1d_mode" value="Default"/>

                   <parm name="1d_marginless_decode_effort_level" value="Default"/>

                   <parm name="poor_quality_bcdecode_effort_level" value="Default"/>

                   <parm name="viewfinder_mode" value="Default"/>

                   </characteristic>

                   <characteristic type="ScanParams">

                   <parm name="code_id_type" value="Default"/>

                   <parm name="volume_slider_type" value="Default"/>

                   <parm name="decode_audio_feedback_uri" value="system/media/audio/notifications/decode-short.ogg"/>

                   <parm name="decode_haptic_feedback" value="Default"/>

                   <parm name="bt_disconnect_on_exit" value="Default"/>

                   <parm name="connection_idle_time" value="600"/>

                   <parm name="establish_connection_time" value="45"/>

                   <parm name="display_bt_address_barcode" value="Default"/>

                   <parm name="good_decode_led_timer" value="75"/>

                   <parm name="decoding_led_feedback" value="Default"/>

                   </characteristic>

                   </characteristic>

                 

                   <characteristic type="Intent" version="0.1">

                   <parm name="emdk_name" value="dataCaptureIntent"/>

                   <parm name="intent_output_enabled" value="true"/>

                   <parm name="intent_action" value="com.qvs.androidshell.RECVR"/>

                   <parm name="intent_category" value="android.intent.category.DEFAULT"/>

                   <parm name="intent_delivery" value="0"/>

                   <characteristic type="BasicDataFormatting">

                   <parm name="bdf_enabled" value="true"/>

                   <parm name="bdf_prefix" value=""/>

                   <parm name="bdf_suffix" value=""/>

                   <parm name="bdf_send_data" value="true"/>

                   <parm name="bdf_send_hex" value="Default"/>

                   <parm name="bdf_send_tab" value="Default"/>

                   <parm name="bdf_send_enter" value="Default"/>

                   </characteristic>

                   </characteristic>

                   <characteristic type="Keystroke" version="0.1">

                   <parm name="emdk_name" value="keystrokeInput"/>

                   <parm name="ime_output_enabled" value="false"/>

                   <parm name="keystroke_action_char" value="Default"/>

                   <characteristic type="BasicDataFormatting">

                   <parm name="bdf_enabled" value="Default"/>

                   <parm name="bdf_prefix" value=""/>

                   <parm name="bdf_suffix" value=""/>

                   <parm name="bdf_send_data" value="Default"/>

                   <parm name="bdf_send_hex" value="Default"/>

                   <parm name="bdf_send_tab" value="Default"/>

                   <parm name="bdf_send_enter" value="Default"/>

                   </characteristic>

                   </characteristic>

                   </characteristic>

                   <characteristic type="Profile">

                   <parm name="ProfileName" value="ScanOffMsrOn"/>

                   <parm name="ModifiedDate" value="2015-06-17 11:26:12"/>

                   <parm name="TargetSystemVersion" value="4.4"/>

                   <characteristic type="MSR" version="0.1">

                   <parm name="emdk_name" value="theMsr"/>

                   <parm name="msr_input_enabled" value="true"/>

                   </characteristic>

                   <characteristic type="Barcode" version="3.1">

                   <parm name="emdk_name" value="theScanner"/>

                   <parm name="scanner_input_enabled" value="false"/>

                   <parm name="ScannerSelection" value="AUTO"/>

                   <characteristic type="Decoders">

                   <parm name="decoder_upca" value="Default"/>

                   <parm name="decoder_upce0" value="Default"/>

                   <parm name="decoder_ean13" value="Default"/>

                   <parm name="decoder_ean8" value="Default"/>

                   <parm name="decoder_code128" value="Default"/>

                   <parm name="decoder_code39" value="Default"/>

                   <parm name="decoder_i2of5" value="Default"/>

                   <parm name="decoder_gs1_databar" value="Default"/>

                   <parm name="decoder_gs1_databar_lim" value="Default"/>

                   <parm name="decoder_gs1_databar_exp" value="Default"/>

                   <parm name="decoder_datamatrix" value="Default"/>

                   <parm name="decoder_qrcode" value="Default"/>

                   <parm name="decoder_pdf417" value="Default"/>

                   <parm name="decoder_composite_ab" value="Default"/>

                   <parm name="decoder_composite_c" value="Default"/>

                   <parm name="decoder_microqr" value="Default"/>

                   <parm name="decoder_aztec" value="Default"/>

                   <parm name="decoder_maxicode" value="Default"/>

                   <parm name="decoder_micropdf" value="Default"/>

                   <parm name="decoder_uspostnet" value="Default"/>

                   <parm name="decoder_usplanet" value="Default"/>

                   <parm name="decoder_uk_postal" value="Default"/>

                   <parm name="decoder_japanese_postal" value="Default"/>

                   <parm name="decoder_australian_postal" value="Default"/>

                   <parm name="decoder_canadian_postal" value="Default"/>

                   <parm name="decoder_dutch_postal" value="Default"/>

                   <parm name="decoder_us4state" value="Default"/>

                   <parm name="decoder_us4state_fics" value="Default"/>

                   <parm name="decoder_codabar" value="Default"/>

                   <parm name="decoder_msi" value="Default"/>

                   <parm name="decoder_code93" value="Default"/>

                   <parm name="decoder_trioptic39" value="Default"/>

                   <parm name="decoder_d2of5" value="Default"/>

                   <parm name="decoder_chinese_2of5" value="Default"/>

                   <parm name="decoder_korean_3of5" value="Default"/>

                   <parm name="decoder_code11" value="Default"/>

                   <parm name="decoder_tlc39" value="Default"/>

                   <parm name="decoder_mailmark" value="Default"/>

                   <parm name="decoder_hanxin" value="Default"/>

                   <parm name="decoder_signature" value="Default"/>

                   <parm name="decoder_webcode" value="Default"/>

                   <parm name="decoder_matrix_2of5" value="Default"/>

                   <parm name="decoder_upce1" value="Default"/>

                   </characteristic>

                   <characteristic type="DecoderParams">

                   <characteristic type="UPCA">

                   <parm name="decoder_upca_report_check_digit" value="Default"/>

                   <parm name="decoder_upca_preamble" value="Default"/>

                   </characteristic>

                   <characteristic type="UPCE0">

                   <parm name="decoder_upce0_report_check_digit" value="Default"/>

                   <parm name="decoder_upce0_preamble" value="Default"/>

                   <parm name="decoder_upce0_convert_to_upca" value="Default"/>

                   </characteristic>

                   <characteristic type="EAN8">

                   <parm name="decoder_ean8_convert_to_ean13" value="Default"/>

                   </characteristic>

                   <characteristic type="Code128">

                   <parm name="decoder_code128_length1" value="0"/>

                   <parm name="decoder_code128_length2" value="55"/>

                   <parm name="decoder_code128_redundancy" value="Default"/>

                   <parm name="decoder_code128_enable_plain" value="Default"/>

                   <parm name="decoder_code128_enable_ean128" value="Default"/>

                   <parm name="decoder_code128_enable_isbt128" value="Default"/>

                   <parm name="decoder_code128_isbt128_concat_mode" value="Default"/>

                   <parm name="decoder_code128_check_isbt_table" value="Default"/>

                   <parm name="decoder_code128_security_level" value="Default"/>

                   <parm name="code128_enable_marginless_decode" value="Default"/>

                   <parm name="code128_ignore_fnc4" value="Default"/>

                   </characteristic>

                   <characteristic type="Code39">

                   <parm name="decoder_code39_length1" value="0"/>

                   <parm name="decoder_code39_length2" value="55"/>

                   <parm name="decoder_code39_verify_check_digit" value="Default"/>

                   <parm name="decoder_code39_report_check_digit" value="Default"/>

                   <parm name="decoder_code39_full_ascii" value="Default"/>

                   <parm name="decoder_code39_redundancy" value="Default"/>

                   <parm name="decoder_code39_convert_to_code32" value="Default"/>

                   <parm name="decoder_code39_report_code32_prefix" value="Default"/>

                   <parm name="decoder_code39_security_level" value="Default"/>

                   <parm name="code39_enable_marginless_decode" value="Default"/>

                   </characteristic>

                   <characteristic type="Interleaved_2of5">

                   <parm name="decoder_i2of5_length1" value="14"/>

                   <parm name="decoder_i2of5_length2" value="10"/>

                   <parm name="decoder_i2of5_redundancy" value="Default"/>

                   <parm name="decoder_i2of5_check_digit" value="Default"/>

                   <parm name="decoder_i2of5_report_check_digit" value="Default"/>

                   <parm name="decoder_itf14_convert_to_ean13" value="Default"/>

                   <parm name="decoder_i2of5_security_level" value="Default"/>

                   <parm name="i20f5_enable_marginless_decode" value="Default"/>

                   </characteristic>

                   <characteristic type="GS1_Databar_Limited">

                   <parm name="decoder_gs1_lim_security_level" value="Default"/>

                   </characteristic>

                   <characteristic type="Composite_AB">

                   <parm name="decoder_composite_ab_ucc_link_mode" value="Default"/>

                   </characteristic>

                   <characteristic type="US_Postnet">

                   <parm name="decoder_uspostnet_report_check_digit" value="Default"/>

                   </characteristic>

                   <characteristic type="US_Planet">

                   <parm name="decoder_usplanet_report_check_digit" value="Default"/>

                   </characteristic>

                   <characteristic type="UK_Postal">

                   <parm name="decoder_uk_postal_report_check_digit" value="Default"/>

                   </characteristic>

                   <characteristic type="Codabar">

                   <parm name="decoder_codabar_length1" value="6"/>

                   <parm name="decoder_codabar_length2" value="55"/>

                   <parm name="decoder_codabar_redundancy" value="Default"/>

                   <parm name="decoder_codabar_clsi_editing" value="Default"/>

                   <parm name="decoder_codabar_notis_editing" value="Default"/>

                   </characteristic>

                   <characteristic type="MSI">

                   <parm name="decoder_msi_length1" value="4"/>

                   <parm name="decoder_msi_length2" value="55"/>

                   <parm name="decoder_msi_redundancy" value="Default"/>

                   <parm name="decoder_msi_check_digit" value="Default"/>

                   <parm name="decoder_msi_check_digit_scheme" value="Default"/>

                   <parm name="decoder_msi_report_check_digit" value="Default"/>

                   </characteristic>

                   <characteristic type="Code93">

                   <parm name="decoder_code93_length1" value="0"/>

                   <parm name="decoder_code93_length2" value="55"/>

                   <parm name="decoder_code93_redundancy" value="Default"/>

                   </characteristic>

                   <characteristic type="Trioptic_39">

                   <parm name="decoder_trioptic39_redundancy" value="Default"/>

                   </characteristic>

                   <characteristic type="Discrete_2of5">

                   <parm name="decoder_d2of5_length1" value="0"/>

                   <parm name="decoder_d2of5_length2" value="14"/>

                   <parm name="decoder_d2of5_redundancy" value="Default"/>

                   </characteristic>

                   <characteristic type="Code11">

                   <parm name="decoder_code11_length1" value="4"/>

                   <parm name="decoder_code11_length2" value="55"/>

                   <parm name="decoder_code11_redundancy" value="Default"/>

                   <parm name="decoder_code11_verify_check_digit" value="Default"/>

                   <parm name="decoder_code11_report_check_digit" value="Default"/>

                   </characteristic>

                   <characteristic type="Han_Xin">

                   <parm name="decoder_hanxin_inverse" value="Default"/>

                   </characteristic>

                   <characteristic type="Matrix_2of5">

                   <parm name="decoder_matrix_2of5_length1" value="10"/>

                   <parm name="decoder_matrix_2of5_length2" value="0"/>

                   <parm name="decoder_matrix_2of5_redundancy" value="Default"/>

                   <parm name="decoder_matrix_2of5_report_check_digit" value="Default"/>

                   <parm name="decoder_matrix_2of5_verify_check_digit" value="Default"/>

                   </characteristic>

                   <characteristic type="UPCE1">

                   <parm name="decoder_upce1_report_check_digit" value="Default"/>

                   <parm name="decoder_upce1_preamble" value="Default"/>

                   <parm name="decoder_upce1_convert_to_upca" value="Default"/>

                   </characteristic>

                   </characteristic>

                   <characteristic type="UpcEanParams">

                   <parm name="upcean_security_level" value="Default"/>

                   <parm name="upcean_supplemental2" value="Default"/>

                   <parm name="upcean_supplemental5" value="Default"/>

                   <parm name="upcean_supplemental_mode" value="Default"/>

                   <parm name="upcean_retry_count" value="10"/>

                   <parm name="upcean_random_weight_check_digit" value="Default"/>

                   <parm name="upcean_linear_decode" value="Default"/>

                   <parm name="upcean_bookland" value="Default"/>

                   <parm name="upcean_coupon" value="Default"/>

                   <parm name="upcean_coupon_report" value="Default"/>

                   <parm name="upcean_ean_zero_extend" value="Default"/>

                   <parm name="upcean_bookland_format" value="Default"/>

                   <parm name="databar_to_upc_ean" value="Default"/>

                   <parm name="upc_enable_marginless_decode" value="Default"/>

                   </characteristic>

                   <characteristic type="ReaderParams">

                   <parm name="beam_timer" value="5000"/>

                   <parm name="Adaptive_Scanning" value="Default"/>

                   <parm name="Beam_Width" value="Default"/>

                   <parm name="power_mode" value="Default"/>

                   <parm name="mpd_mode" value="Default"/>

                   <parm name="reader_mode" value="Default"/>

                   <parm name="linear_security_level" value="Default"/>

                   <parm name="picklist" value="Default"/>

                   <parm name="aim_type" value="Default"/>

                   <parm name="same_barcode_timeout" value="500"/>

                   <parm name="different_barcode_timeout" value="500"/>

                   <parm name="illumination_mode" value="Default"/>

                   <parm name="lcd_mode" value="Default"/>

                   <parm name="delay_to_low_power_mode" value="Default"/>

                   <parm name="illumination_brightness" value="10"/>

                   <parm name="inverse_1d_mode" value="Default"/>

                   <parm name="1d_marginless_decode_effort_level" value="Default"/>

                   <parm name="poor_quality_bcdecode_effort_level" value="Default"/>

                   <parm name="viewfinder_mode" value="Default"/>

                   </characteristic>

                   <characteristic type="ScanParams">

                   <parm name="code_id_type" value="Default"/>

                   <parm name="volume_slider_type" value="Default"/>

                   <parm name="decode_audio_feedback_uri" value="system/media/audio/notifications/decode-short.ogg"/>

                   <parm name="decode_haptic_feedback" value="Default"/>

                   <parm name="bt_disconnect_on_exit" value="Default"/>

                   <parm name="connection_idle_time" value="600"/>

                   <parm name="establish_connection_time" value="45"/>

                   <parm name="display_bt_address_barcode" value="Default"/>

                   <parm name="good_decode_led_timer" value="75"/>

                   <parm name="decoding_led_feedback" value="Default"/>

                   </characteristic>

                   </characteristic>

                 

                   <characteristic type="Intent" version="0.1">

                   <parm name="emdk_name" value="dataCaptureIntent"/>

                   <parm name="intent_output_enabled" value="true"/>

                   <parm name="intent_action" value="com.qvs.androidshell.RECVR"/>

                   <parm name="intent_category" value="android.intent.category.DEFAULT"/>

                   <parm name="intent_delivery" value="0"/>

                   <characteristic type="BasicDataFormatting">

                   <parm name="bdf_enabled" value="true"/>

                   <parm name="bdf_prefix" value=""/>

                   <parm name="bdf_suffix" value=""/>

                   <parm name="bdf_send_data" value="true"/>

                   <parm name="bdf_send_hex" value="Default"/>

                   <parm name="bdf_send_tab" value="Default"/>

                   <parm name="bdf_send_enter" value="Default"/>

                   </characteristic>

                   </characteristic>

                   <characteristic type="Keystroke" version="0.1">

                   <parm name="emdk_name" value="keystrokeInput"/>

                   <parm name="ime_output_enabled" value="false"/>

                   <parm name="keystroke_action_char" value="Default"/>

                   <characteristic type="BasicDataFormatting">

                   <parm name="bdf_enabled" value="Default"/>

                   <parm name="bdf_prefix" value=""/>

                   <parm name="bdf_suffix" value=""/>

                   <parm name="bdf_send_data" value="Default"/>

                   <parm name="bdf_send_hex" value="Default"/>

                   <parm name="bdf_send_tab" value="Default"/>

                   <parm name="bdf_send_enter" value="Default"/>

                   </characteristic>

                   </characteristic>

                 

                   </characteristic>

                   <characteristic type="Profile">

                   <parm name="ProfileName" value="ScanOnMsrOn"/>

                   <parm name="ModifiedDate" value="2015-06-17 11:26:12"/>

                   <parm name="TargetSystemVersion" value="4.4"/>

                   <characteristic type="MSR" version="0.1">

                   <parm name="emdk_name" value="theMsr"/>

                   <parm name="msr_input_enabled" value="true"/>

                   </characteristic>

                   <characteristic type="Barcode" version="3.1">

                   <parm name="emdk_name" value="theScanner"/>

                   <parm name="scanner_input_enabled" value="true"/>

                   <parm name="ScannerSelection" value="AUTO"/>

                   <characteristic type="Decoders">

                   <parm name="decoder_upca" value="Default"/>

                   <parm name="decoder_upce0" value="Default"/>

                   <parm name="decoder_ean13" value="Default"/>

                   <parm name="decoder_ean8" value="Default"/>

                   <parm name="decoder_code128" value="Default"/>

                   <parm name="decoder_code39" value="Default"/>

                   <parm name="decoder_i2of5" value="Default"/>

                   <parm name="decoder_gs1_databar" value="Default"/>

                   <parm name="decoder_gs1_databar_lim" value="Default"/>

                   <parm name="decoder_gs1_databar_exp" value="Default"/>

                   <parm name="decoder_datamatrix" value="Default"/>

                   <parm name="decoder_qrcode" value="Default"/>

                   <parm name="decoder_pdf417" value="Default"/>

                   <parm name="decoder_composite_ab" value="Default"/>

                   <parm name="decoder_composite_c" value="Default"/>

                   <parm name="decoder_microqr" value="Default"/>

                   <parm name="decoder_aztec" value="Default"/>

                   <parm name="decoder_maxicode" value="Default"/>

                   <parm name="decoder_micropdf" value="Default"/>

                   <parm name="decoder_uspostnet" value="Default"/>

                   <parm name="decoder_usplanet" value="Default"/>

                   <parm name="decoder_uk_postal" value="Default"/>

                   <parm name="decoder_japanese_postal" value="Default"/>

                   <parm name="decoder_australian_postal" value="Default"/>

                   <parm name="decoder_canadian_postal" value="Default"/>

                   <parm name="decoder_dutch_postal" value="Default"/>

                   <parm name="decoder_us4state" value="Default"/>

                   <parm name="decoder_us4state_fics" value="Default"/>

                   <parm name="decoder_codabar" value="Default"/>

                   <parm name="decoder_msi" value="Default"/>

                   <parm name="decoder_code93" value="Default"/>

                   <parm name="decoder_trioptic39" value="Default"/>

                   <parm name="decoder_d2of5" value="Default"/>

                   <parm name="decoder_chinese_2of5" value="Default"/>

                   <parm name="decoder_korean_3of5" value="Default"/>

                   <parm name="decoder_code11" value="Default"/>

                   <parm name="decoder_tlc39" value="Default"/>

                   <parm name="decoder_mailmark" value="Default"/>

                   <parm name="decoder_hanxin" value="Default"/>

                   <parm name="decoder_signature" value="Default"/>

                   <parm name="decoder_webcode" value="Default"/>

                   <parm name="decoder_matrix_2of5" value="Default"/>

                   <parm name="decoder_upce1" value="Default"/>

                   </characteristic>

                   <characteristic type="DecoderParams">

                   <characteristic type="UPCA">

                   <parm name="decoder_upca_report_check_digit" value="Default"/>

                   <parm name="decoder_upca_preamble" value="Default"/>

                   </characteristic>

                   <characteristic type="UPCE0">

                   <parm name="decoder_upce0_report_check_digit" value="Default"/>

                   <parm name="decoder_upce0_preamble" value="Default"/>

                   <parm name="decoder_upce0_convert_to_upca" value="Default"/>

                   </characteristic>

                   <characteristic type="EAN8">

                   <parm name="decoder_ean8_convert_to_ean13" value="Default"/>

                   </characteristic>

                   <characteristic type="Code128">

                   <parm name="decoder_code128_length1" value="0"/>

                   <parm name="decoder_code128_length2" value="55"/>

                   <parm name="decoder_code128_redundancy" value="Default"/>

                   <parm name="decoder_code128_enable_plain" value="Default"/>

                   <parm name="decoder_code128_enable_ean128" value="Default"/>

                   <parm name="decoder_code128_enable_isbt128" value="Default"/>

                   <parm name="decoder_code128_isbt128_concat_mode" value="Default"/>

                   <parm name="decoder_code128_check_isbt_table" value="Default"/>

                   <parm name="decoder_code128_security_level" value="Default"/>

                   <parm name="code128_enable_marginless_decode" value="Default"/>

                   <parm name="code128_ignore_fnc4" value="Default"/>

                   </characteristic>

                   <characteristic type="Code39">

                   <parm name="decoder_code39_length1" value="0"/>

                   <parm name="decoder_code39_length2" value="55"/>

                   <parm name="decoder_code39_verify_check_digit" value="Default"/>

                   <parm name="decoder_code39_report_check_digit" value="Default"/>

                   <parm name="decoder_code39_full_ascii" value="Default"/>

                   <parm name="decoder_code39_redundancy" value="Default"/>

                   <parm name="decoder_code39_convert_to_code32" value="Default"/>

                   <parm name="decoder_code39_report_code32_prefix" value="Default"/>

                   <parm name="decoder_code39_security_level" value="Default"/>

                   <parm name="code39_enable_marginless_decode" value="Default"/>

                   </characteristic>

                   <characteristic type="Interleaved_2of5">

                   <parm name="decoder_i2of5_length1" value="14"/>

                   <parm name="decoder_i2of5_length2" value="10"/>

                   <parm name="decoder_i2of5_redundancy" value="Default"/>

                   <parm name="decoder_i2of5_check_digit" value="Default"/>

                   <parm name="decoder_i2of5_report_check_digit" value="Default"/>

                   <parm name="decoder_itf14_convert_to_ean13" value="Default"/>

                   <parm name="decoder_i2of5_security_level" value="Default"/>

                   <parm name="i20f5_enable_marginless_decode" value="Default"/>

                   </characteristic>

                   <characteristic type="GS1_Databar_Limited">

                   <parm name="decoder_gs1_lim_security_level" value="Default"/>

                   </characteristic>

                   <characteristic type="Composite_AB">

                   <parm name="decoder_composite_ab_ucc_link_mode" value="Default"/>

                   </characteristic>

                   <characteristic type="US_Postnet">

                   <parm name="decoder_uspostnet_report_check_digit" value="Default"/>

                   </characteristic>

                   <characteristic type="US_Planet">

                   <parm name="decoder_usplanet_report_check_digit" value="Default"/>

                   </characteristic>

                   <characteristic type="UK_Postal">

                   <parm name="decoder_uk_postal_report_check_digit" value="Default"/>

                   </characteristic>

                   <characteristic type="Codabar">

                   <parm name="decoder_codabar_length1" value="6"/>

                   <parm name="decoder_codabar_length2" value="55"/>

                   <parm name="decoder_codabar_redundancy" value="Default"/>

                   <parm name="decoder_codabar_clsi_editing" value="Default"/>

                   <parm name="decoder_codabar_notis_editing" value="Default"/>

                   </characteristic>

                   <characteristic type="MSI">

                   <parm name="decoder_msi_length1" value="4"/>

                   <parm name="decoder_msi_length2" value="55"/>

                   <parm name="decoder_msi_redundancy" value="Default"/>

                   <parm name="decoder_msi_check_digit" value="Default"/>

                   <parm name="decoder_msi_check_digit_scheme" value="Default"/>

                   <parm name="decoder_msi_report_check_digit" value="Default"/>

                   </characteristic>

                   <characteristic type="Code93">

                   <parm name="decoder_code93_length1" value="0"/>

                   <parm name="decoder_code93_length2" value="55"/>

                   <parm name="decoder_code93_redundancy" value="Default"/>

                   </characteristic>

                   <characteristic type="Trioptic_39">

                   <parm name="decoder_trioptic39_redundancy" value="Default"/>

                   </characteristic>

                   <characteristic type="Discrete_2of5">

                   <parm name="decoder_d2of5_length1" value="0"/>

                   <parm name="decoder_d2of5_length2" value="14"/>

                   <parm name="decoder_d2of5_redundancy" value="Default"/>

                   </characteristic>

                   <characteristic type="Code11">

                   <parm name="decoder_code11_length1" value="4"/>

                   <parm name="decoder_code11_length2" value="55"/>

                   <parm name="decoder_code11_redundancy" value="Default"/>

                   <parm name="decoder_code11_verify_check_digit" value="Default"/>

                   <parm name="decoder_code11_report_check_digit" value="Default"/>

                   </characteristic>

                   <characteristic type="Han_Xin">

                   <parm name="decoder_hanxin_inverse" value="Default"/>

                   </characteristic>

                   <characteristic type="Matrix_2of5">

                   <parm name="decoder_matrix_2of5_length1" value="10"/>

                   <parm name="decoder_matrix_2of5_length2" value="0"/>

                   <parm name="decoder_matrix_2of5_redundancy" value="Default"/>

                   <parm name="decoder_matrix_2of5_report_check_digit" value="Default"/>

                   <parm name="decoder_matrix_2of5_verify_check_digit" value="Default"/>

                   </characteristic>

                   <characteristic type="UPCE1">

                   <parm name="decoder_upce1_report_check_digit" value="Default"/>

                   <parm name="decoder_upce1_preamble" value="Default"/>

                   <parm name="decoder_upce1_convert_to_upca" value="Default"/>

                   </characteristic>

                   </characteristic>

                   <characteristic type="UpcEanParams">

                   <parm name="upcean_security_level" value="Default"/>

                   <parm name="upcean_supplemental2" value="Default"/>

                   <parm name="upcean_supplemental5" value="Default"/>

                   <parm name="upcean_supplemental_mode" value="Default"/>

                   <parm name="upcean_retry_count" value="10"/>

                   <parm name="upcean_random_weight_check_digit" value="Default"/>

                   <parm name="upcean_linear_decode" value="Default"/>

                   <parm name="upcean_bookland" value="Default"/>

                   <parm name="upcean_coupon" value="Default"/>

                   <parm name="upcean_coupon_report" value="Default"/>

                   <parm name="upcean_ean_zero_extend" value="Default"/>

                   <parm name="upcean_bookland_format" value="Default"/>

                   <parm name="databar_to_upc_ean" value="Default"/>

                   <parm name="upc_enable_marginless_decode" value="Default"/>

                   </characteristic>

                   <characteristic type="ReaderParams">

                   <parm name="beam_timer" value="5000"/>

                   <parm name="Adaptive_Scanning" value="Default"/>

                   <parm name="Beam_Width" value="Default"/>

                   <parm name="power_mode" value="Default"/>

                   <parm name="mpd_mode" value="Default"/>

                   <parm name="reader_mode" value="Default"/>

                   <parm name="linear_security_level" value="Default"/>

                   <parm name="picklist" value="Default"/>

                   <parm name="aim_type" value="Default"/>

                   <parm name="same_barcode_timeout" value="500"/>

                   <parm name="different_barcode_timeout" value="500"/>

                   <parm name="illumination_mode" value="Default"/>

                   <parm name="lcd_mode" value="Default"/>

                   <parm name="delay_to_low_power_mode" value="Default"/>

                   <parm name="illumination_brightness" value="10"/>

                   <parm name="inverse_1d_mode" value="Default"/>

                   <parm name="1d_marginless_decode_effort_level" value="Default"/>

                   <parm name="poor_quality_bcdecode_effort_level" value="Default"/>

                   <parm name="viewfinder_mode" value="Default"/>

                   </characteristic>

                   <characteristic type="ScanParams">

                   <parm name="code_id_type" value="Default"/>

                   <parm name="volume_slider_type" value="Default"/>

                   <parm name="decode_audio_feedback_uri" value="system/media/audio/notifications/decode-short.ogg"/>

                   <parm name="decode_haptic_feedback" value="Default"/>

                   <parm name="bt_disconnect_on_exit" value="Default"/>

                   <parm name="connection_idle_time" value="600"/>

                   <parm name="establish_connection_time" value="45"/>

                   <parm name="display_bt_address_barcode" value="Default"/>

                   <parm name="good_decode_led_timer" value="75"/>

                   <parm name="decoding_led_feedback" value="Default"/>

                   </characteristic>

                   </characteristic>

                 

                   <characteristic type="Intent" version="0.1">

                   <parm name="emdk_name" value="dataCaptureIntent"/>

                   <parm name="intent_output_enabled" value="true"/>

                   <parm name="intent_action" value="com.qvs.androidshell.RECVR"/>

                   <parm name="intent_category" value="android.intent.category.DEFAULT"/>

                   <parm name="intent_delivery" value="0"/>

                   <characteristic type="BasicDataFormatting">

                   <parm name="bdf_enabled" value="true"/>

                   <parm name="bdf_prefix" value=""/>

                   <parm name="bdf_suffix" value=""/>

                   <parm name="bdf_send_data" value="true"/>

                   <parm name="bdf_send_hex" value="Default"/>

                   <parm name="bdf_send_tab" value="Default"/>

                   <parm name="bdf_send_enter" value="Default"/>

                   </characteristic>

                   </characteristic>

                   <characteristic type="Keystroke" version="0.1">

                   <parm name="emdk_name" value="keystrokeInput"/>

                   <parm name="ime_output_enabled" value="false"/>

                   <parm name="keystroke_action_char" value="Default"/>

                   <characteristic type="BasicDataFormatting">

                   <parm name="bdf_enabled" value="Default"/>

                   <parm name="bdf_prefix" value=""/>

                   <parm name="bdf_suffix" value=""/>

                   <parm name="bdf_send_data" value="Default"/>

                   <parm name="bdf_send_hex" value="Default"/>

                   <parm name="bdf_send_tab" value="Default"/>

                   <parm name="bdf_send_enter" value="Default"/>

                   </characteristic>

                   </characteristic>

                   </characteristic>

                </wap-provisioningdoc>

              • Re: ArrayIndexOutOfBoundsException
                Charitha Mallawaarachchi

                Hi John,

                 

                Could you please replace "(String[]) null" with "new String[1]" and let us know the result?

                 

                Thanks,

                Charith.

                • Re: ArrayIndexOutOfBoundsException
                  Charitha Mallawaarachchi

                  Hi John,

                   

                  Above exception is written when the parameters are invalid in to the processProfile API call. As per your code snippets given, they are correct.

                   

                  Further i added your xml into the ProfileDataCaptureSample1 and ran the same four profiles. it worked. Could you please run the same sample attached and see if the Logcat shows a failure in particular log messages? If so please share them.

                   

                          EMDKResults results = profileManager.processProfile("ScanOffMsrOn", ProfileManager.PROFILE_FLAG.SET, (String[]) null);

                          Log.e("TEST", "AAAA1: " +  results.getStatusString());

                          results = profileManager.processProfile("ScanOnMsrOff", ProfileManager.PROFILE_FLAG.SET, (String[]) null);

                          Log.e("TEST", "AAAA2: " +  results.getStatusString());

                          results = profileManager.processProfile("ScanOffMsrOn", ProfileManager.PROFILE_FLAG.SET, (String[]) null);

                          Log.e("TEST", "AAAA3: " +  results.getStatusString());

                          results = profileManager.processProfile("ScanOnMsrOn", ProfileManager.PROFILE_FLAG.SET, (String[]) null);

                          Log.e("TEST", "AAAA4: " +  results.getStatusString());

                   

                  If this is working, then you may need to compare the differences when you call the above APIs.

                   

                  Thanks,

                  Charith.