Details
-
Bug
-
Resolution: Duplicate
-
Not Evaluated
-
None
-
5.14.2
-
None
-
Android 12 Pixel phone
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
- duplicates
-
QTBUG-92965 Support Android GnssStatus for API >= 24
-
- Closed
-