The aim of this section is to generate a standalone APK file for the gallery-mobile application. Packaging and deploying an application for Android requires multiple steps:
- Configure the Android build details
- Generate a keystore and a certificate
- Customize the Android manifest from a template
- Create a script to automate the packaging
You can do most of these tasks directly from Qt Creator. Under the hood, the androiddeployqt Qt tool is called to generate the APK file. Go to Projects | Android for armeabi-v7a | Build 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. In our case, we selected android-23 for the Android API Level 23. Always try to build your application with the latest SDK version...