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

Android 12 - Deprecations

    XMLWordPrintable

Details

    • Android
    • 2022wk24FOQtforAndroid, 2022wk26FOQtforAndroid, 2022wk28FOQtforAndroid, 2022wk30FOQtforAndroid, 2022wk32FOQtforAndroid, 2022wk34FOQtforAndroid, 2022wk36FOQtforAndroid, 2022wk38FOQtforAndroid
    • 413593183b (qt/qtbase/dev) 413593183b (qt/tqtc-qtbase/dev) 3fbee34058 (qt/qtbase/6.3) 3fbee34058 (qt/tqtc-qtbase/6.3) d25cf4a94c (qt/tqtc-qtbase/6.2) 1437422bd2 (qt/qtbase/6.4) 1437422bd2 (qt/tqtc-qtbase/6.4) 150d346f11 (qt/tqtc-qtbase/5.15)

    Description

      Deprecations

      RenderScript API

      Deprecated earlier in favor of Vulkan.

      https://developer.android.com/guide/topics/renderscript/migrate

      Proposed Action: No action.

      Android playlists API

      Deprecated earlier in favor of Creating M3u playlists.

      https://developer.android.com/reference/android/provider/MediaStore.Audio.Playlists

      Proposed Action: No action.

      Display API

      Deprecated earlier in favor of using WindowMetrics API

      In Android 11 we introduced the WindowMetrics API and deprecated these methods:

      Display.getSize()
      Display.getMetrics()

      In Android 12 we continue to recommend using WindowMetrics and are deprecating these methods:

      Display.getRealSize()
      Display.getRealMetrics()

      Apps should use the WindowMetrics APIs to query the bounds of their window, or Configuration.densityDpi to query the current density.

      Note that the Jetpack WindowManager library includes a WindowMetrics class that supports Android 4.0.1 (API level 14) and higher.

      Proposed Action: Check if Display is being used and use Jetpack WindowMetrics forward.

       ** 

      Attachments

        Issue Links

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

          Activity

            People

              samuelmira Samuel Mira
              samuelmira Samuel Mira
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes