Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-67482

Remove deprecated usage of BluetoothAdapter.start/stopLeScan

    XMLWordPrintable

Details

    • 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

        Activity

          People

            ablasche Alex Blasche
            ablasche Alex Blasche
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes