Learn what Felgo offers to help your business succeed. Start your free evaluation today! Felgo for Your Business

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:

  1. Open your application project using Qt Creator v3.0 or later and change its Build settings to build release version.
  2. 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.

  3. 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.

  4. 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.
  5. 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.
  6. 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.

Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded