-
Suggestion
-
Resolution: Done
-
P2: Important
-
5.11.0 Beta 2
-
None
-
23ab3c692c9be5e086f1c0f0ce615480a41eccb6 (qt/qtconnectivity/dev) 76d98250d46b4afa3d83b550bd26b33021928310 (qt/qtconnectivity/5.15)
The below listed functions have been deprecated:
src/org/qtproject/qt5/android/bluetooth/QtBluetoothLE.java:147: warning: [deprecation] startLeScan(LeScanCallback) in BluetoothAdapter has been deprecated
mLeScanRunning = mBluetoothAdapter.startLeScan(leScanCallback);
^
src/org/qtproject/qt5/android/bluetooth/QtBluetoothLE.java:149: warning: [deprecation] stopLeScan(LeScanCallback) in BluetoothAdapter has been deprecated
mBluetoothAdapter.stopLeScan(leScanCallback);
The replacement is BluetoothLeScanner.startScan()/stopScan(). The replacements were introduced by Android API 21 which means the replacement must be written such that the deprecated version is still used since Qt should work in all versions above lvl 16.