Publishing to Google Play
Qt for Android provides a complete solution to develop, build, and package your applications for Android. Most of these tasks, especially packaging and deployment are handled by Qt Creator providing rich developer experience.
Every time you run the application using Qt Creator, an Android Application Package (APK) is created and deployed onto the target (device or emulator) you choose. With some minor changes to how the .apk is created, you can publish your application on Google Play and monetize. The following step-by-step instructions guide you to create an .apk that can go live on Google Play:
- Open your application project using Qt Creator v3.0 or later and change its Build settings to build release version.
- Select Create Templates under Build settings to create the template files such as AndroidManifest.xml and other resources.
Note: You can edit the AndroidManifest.xml in General or XML Source mode.
- Check for the following in AndroidManifest.xml:
- Minimum required SDK is set to API 9 or later.
Note: Qt Quick Controls with native Android style require API 11 (Android v3.0) or later.
- Add Application name and Application icon.
- Permissions list has all the required permissions.
- Features list has the software or hardware features that your application depends on. For example, NFC.
Note: Qt adds the default permissions and features based on the module dependencies of your application. If you do not want these default permissions and features, remove the
<!-- %%INSERT_PERMISSIONS -->
and<!-- %%INSERT_FEATURES -->
comments from AndroidManifest.xml. For information on the manifest XML format, see Android: App Manifest. - Minimum required SDK is set to API 9 or later.
- Set up a keystore to sign the .apk. You can create a new keystore if you do not have one. For more details, see QtCreator: Specifying Settings for Packages.
- Select Open package location after build and run your application to build the .apk. Qt Creator builds the .apk and opens the folder containing the .apk.
- Log in to the Google Play Developer Console and upload the .apk file, few screen captures of the application, and a description.
Now your application is available to other Android device users via Google Play. You can also choose to publish the application to a smaller group, so that you can test and improve the application before publishing it to a larger audience.
See Deploying an Application on Android for more information about how the packaging is done and how you can influence it.
© 2019 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.