lqml/examples/meshtastic/hacks/qt-location-hack
2023-08-06 13:54:27 +02:00
..
diff.java example 'meshtastic': update mt proto files to v2.1.22; revisions 2023-08-06 13:54:27 +02:00
path.txt example 'meshtastic': add app icon, splash screen; revisions 2023-07-17 15:45:32 +02:00
QtActivity.java example 'meshtastic': add Swank server, trivial signal test (from mobile device) 2023-07-29 13:14:30 +02:00
readme.md example 'meshtastic': add app icon, splash screen; revisions 2023-07-17 15:45:32 +02:00

android only

Why

This is needed on android because a mobile device which doesn't move only receives one (or maybe two) GPS updates before stopping the updates.

Since we have a long startup time with this app, we would completely miss the first GPS updates using the convenient QML wrapper PositionSource, hence not being able to communicate our position to the radio device.

The only workaround seems to directly access the Java Location functions.

HowTo

Just copy QtActivity.java to path in path.txt (for Qt 5.15); alternatively apply patch diff.java.

See also cpp/qt.cpp.