Scanner SDK not working & crashing on Android 14

C Christoph Rathkolb 2 months 3 weeks ago
57 1 0

I have tried the Android Scanner SDK version 2.6.22.0 as well as version 2.6.21.0 on Google Pixel 6a.

When trying to connect via Bluetooth LE and configuration mode DCSSDKDefs.DCSSDK_BT_SCANNER_CONFIG.KEEP_CURRENT everything works.

When using configuration mode DCSSDKDefs.DCSSDK_BT_SCANNER_CONFIG.SET_FACTORY_DEFAULTS, no connection can be established.

When using configuration mode DCSSDKDefs.DCSSDK_BT_SCANNER_CONFIG.RESTORE_FACTORY_DEFAULTS, no connection can be established and I often get a crash:

java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.String.indexOf(java.lang.String)' on a null object reference

 at com.zebra.scannercontrol.SDKHandler.bluetoothLEDeviceAppeared(SDKHandler.java:2296)

 at com.zebra.scannercontrol.BluetoothLEManager.processScanRecord(BluetoothLEManager.java:453)

 at com.zebra.scannercontrol.BluetoothLEManager.access$500(BluetoothLEManager.java:48)

 at com.zebra.scannercontrol.BluetoothLEManager$2.onScanResult(BluetoothLEManager.java:262)

 at android.bluetooth.le.BluetoothLeScanner$BleScanCallbackWrapper$1.run(BluetoothLeScanner.java:568)

 at android.os.Handler.handleCallback(Handler.java:959)

Everything happening on Android 14 only. Android 13 seems to work.

Any ideas how to solve this?

Please Register or Login to post a reply

1 Replies

E Eddie Nelson

It seems like the issue is related to Android 14, as it works fine on Android 13. You might want to check for any compatibility updates for the SDK or try reaching out to Zebra support for a patch or workaround for the Android 14-specific crash.

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