How can I convert my QT/QML sample application to Android application (.apk) ?
Thanks
Hey KK-
There are a few places that you can obtain the APK. The easiest thing to do is to just press play in Qt Creator, and it will build the libraries, create and bundle the APK, push it to the device, and install it all in one go. You can then obtain the APK from the shadow build folder (the folder that is created next to the project folder during the build process). Inside of that, there is an android-build/bin folder, and you will see the APK there. You can then take this an install this on other devices.
If you are looking for a more official and less hacky type of way to build the APK (perhaps you need to do an automated daily build, or you have different options you want to specify/sign the APK), then you should use the "androiddeployqt" executable that is in your ~/Qt/5.4/android_armv7/bin folder. This takes a bit more time to get it set up (compared to just pressing play), but is a good resource if you are looking to have a build system set up in your organization. Note that Qt Creator just calls this tool for you when you press play. Please refer to the Qt documentation for more details - Deploying an Application on Android | Qt 5.4
-Luke
Vous pouvez utiliser Qt pour Android afin de créer votre application QML sous forme d’APK. Vous devrez configurer le SDK et le NDK Android dans Qt Creator, ainsi qu’un JDK compatible. Une fois le kit Android configuré, sélectionnez-le comme cible de compilation et empaquetez l’application pour Android. Si vous rencontrez des erreurs de compilation, indiquez votre version de Qt et votre configuration pour qu’on puisse vous aider à trouver les étapes adaptées.
Les membres connectés peuvent publier, suivre les mises à jour et bien plus encore. Nouveau ici ? Créez un compte gratuit.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.