Details
-
Suggestion
-
Resolution: Done
-
P2: Important
-
5.11.0 Beta 2
-
None
-
23ab3c692c9be5e086f1c0f0ce615480a41eccb6 (qt/qtconnectivity/dev) 76d98250d46b4afa3d83b550bd26b33021928310 (qt/qtconnectivity/5.15)
Description
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.
Attachments
For Gerrit Dashboard: QTBUG-67482 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
259040,4 | Remove use of deprecated btle device scan API on Android | dev | qt/qtconnectivity | Status: MERGED | +2 | 0 |
291143,5 | Catch turned off Bluetooth adapter when stopping LE discovery | 5.14 | qt/qtconnectivity | Status: MERGED | +2 | 0 |