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

Deprecated API used for positioning on Android

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Duplicate
    • Affects Version/s: 5.14.2
    • Fix Version/s: None
    • Component/s: Positioning
    • Labels:
      None
    • Environment:
      Android 12 Pixel phone
    • Platform/s:
      Android

      Description

      Hi, when building Android app with QtPositioning and using QGeoPositionInfoSource, this is what I get in logs:

      W System.err: java.lang.UnsupportedOperationException: GpsStatus APIs not supported, please use GnssStatus APIs instead
      W System.err:  at android.location.LocationManager.addGpsStatusListener(LocationManager.java:2344)
      W System.err:  at org.qtproject.qt5.android.positioning.QtPositioning$PositioningLooper.run(QtPositioning.java:459)

      It is a build for Android-12 on Pixel with Qt 5.14.2

      https://developer.android.com/reference/android/location/GpsStatus GPS Status API are deprecated from API 24. 

       

      I am using Qt 5.14.2, it is possible that in 6.x you already migrated to new API. Please close this ticket if it is fixed in recent Qt versions.

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              ablasche Alex Blasche
              Reporter:
              tomasmizera Tomas Mizera
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes