Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-90496 QtAndroid namespace future in Qt 6
  3. QTBUG-90497

QtAndroid::androidSdkVersion() alternative in Qt 6

    XMLWordPrintable

Details

    • Technical task
    • Resolution: Done
    • P1: Critical
    • 6.2.0 FF
    • Extras: Android
    • None
    • Android
    • 2021wk06, 2021wk08PO2, 2021wk18PO2, 2021wk20PO2

    Description

      Many modules that implement some Android feature rely on QtAndroid::androidSdkVersion() which is used to check the the Android api version to use a correct Java method/API for a given Android version. However, one alternative to that is using QOperatingSystemVersion

      if (QOperatingSystemVersion::current() >= QOperatingSystemVersion::AndroidOreo)
          // Do stuff
      

       

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              assam Assam Boudjelthia
              assam Assam Boudjelthia
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes