Packaging for Android

The aim of this section is to generate a standalone APK file for the gallery-mobile application. Packaging and deploying an application for Android require multiple steps:

  1. Configure the Android build details.
  2. Generate a keystore and a certificate.
  3. Customize the Android manifest from a template.
  4. Create a script to automate the packaging.

You can do most of the tasks directly from Qt Creator. Under the hood, the Qt tool, androiddeployqt, is called to generate the APK file. Go to ProjectsAndroid for armeabi-v7aBuild Steps. You should see a special build step: Build Android APK. The details look like the following screenshot:

The first thing to do is to select which Android API level you want to use to generate the Application ...

Get Mastering Qt 5 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.