Qt for Android Automotive Quick Starter Guide
This page lists all the instructions you need to get up an running with Qt for Android Automotive. It uses Qt Creator for automated setup where possible.
The video below demonstrates the process.
Complete the steps on the Installing Qt for Android Automotive page.
- Open the JNI or QtRO sub project in Qt Creator or Design Studio. They should be in the following file locations:
Note: This step is only required if you are working from a repo source package. Please disregard if you have been provided with binaries, or have installed via the online installer.
Set the build folder location outside the Qt source tree (shadow-build).
- Configure the project settings (Projects mode: Ctrl+5 by default)
- Confirm that the applicable Android Kit for your target device is chosen for compilation.
- Set the signing of the APK Build > Build Steps > build android APK. See: How to: Signing Android Packages for more information.
Note: You must use the same key used to sign the AAOS image of your target.
- Choose the target , either
jni. This can be quickly selected from the deploy widget, as shown below:
Note: Manually running
CMakefrom the HVAC project's right click context menu, will ensure code that is generated from the templates is generated before the build.
Build your AOSP image and copy the image into the corresponding location in your Android SDK folder, for example:
Follow the steps outlined in creating a new AVD (Android Virtual Device) in the Qt Creator manual. Then, start your AVD to check that it has been configured correctly.
Click Run. This will complete the build, open the Emulator, and install the app.
See interacting with the HVAC Control App to see what it can do.
See also HVAC Control.
Available under certain Qt licenses.
Find out more.