diff options
author | Ivan Solovev <ivan.solovev@qt.io> | 2023-01-10 15:41:57 +0100 |
---|---|---|
committer | Ivan Solovev <ivan.solovev@qt.io> | 2023-01-13 15:06:23 +0100 |
commit | c0c8901c9ef20da419f7d9ddaec779d88445299d (patch) | |
tree | 01343842483df1cf3becab6776ae7517a56a6dcb /examples/positioning/geoflickr/flickrcommon | |
parent | 93f40583fc5801281d7faf7159d4d68b82d8bfee (diff) |
QtPositioning: add GnssStatus support for android plugin
This commit adds support for GnssStatus and GnssStatus.Callback API
to detect satellite info changes since API Level 24.
Note that we also need to retain the old GpsStatus API, because we
support API Level 23 as well.
This commit introduces an abstract PositioningLooperBase class on
the Java side, and creates different subclasses for each of the
APIs. Only one subclass is instantiated at each run, depending on
the OS version.
As a drive-by: removed an unused LocationManager variable during
PositioningLooper refactoring.
This commit is manually cherry-picked from
dd4200e16b49224ad2ff0f39415cddf165561b79 and adapted to use plain
JNI APIs, as there is no QJniObject and QJniEnvironment in Qt 5.
The reason for cherry-pick is that the deprecated methods are
removed in SDK 31, so satellite information does not work when
settings ANDROID_TARGET_SDK_VERSION >= 31.
Fixes: QTBUG-92965
Change-Id: I8af1c37d99b75fc9ad27b77b1befa4e1f8626803
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
Diffstat (limited to 'examples/positioning/geoflickr/flickrcommon')
0 files changed, 0 insertions, 0 deletions