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
Você pode usar o Qt para Android para compilar seu aplicativo QML como um APK. Será necessário configurar o Android SDK e o NDK no Qt Creator, além de um JDK compatível. Depois de configurar o kit para Android, selecione-o como destino da compilação e empacote o aplicativo para Android. Se encontrar erros de compilação, informar sua versão do Qt e os detalhes da configuração ajudará a identificar os passos necessários.
Os membros conectados podem publicar, acompanhar atualizações e muito mais. É novo por aqui? Cadastre-se gratuitamente.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.