1.3 KiB
Note
This will only work with Qt 5.15 (customized AndroidManifest.xml file) and requires WearOS 2 or later.
You'll also need an easy to apply hack for the heart rate sensor, see qt-sensor-hack.
It is assumed that you already enabled the developer settings on your watch.
Build 32bit android APK
First you need to connect your device through WiFi. Please set your watch IP address in build-android/connect.sh and run:
$ ./build-android/connect.sh
You probably want to build a 32bit version, because most watches are 32bit.
For this you first need to build a 32bit version of the LQML library, see readme-prepare-android.md.
Now you can build the app:
$ cd build-android
$ qmake-android "CONFIG+=32bit" ..
$ make apk
$ ./install-run.sh
Log note: for showing only your own messages, see log.sh.
Important note (Qt bug)
After editing AndroidManifest.xml
in Qt Creator you need to add this inside activity:
android:theme="@android:style/Theme.DeviceDefault"
If you omit the above setting, the app will not start and just show an error message instead.