January 22, 2025 by Soheil Armin | Comments
Qt for Android Automotive has introduced a transformative new back-end for the ActivityView module, significantly advancing user interface development on Android Automotive. Moving beyond the limitations of traditional Java APIs offered by AOSP, this advanced back-end enables fluid integration of third-party Android apps directly into the Qt Quick applications. This brings a new level of flexibility to Qt for Android Automotive user interfaces.
The new "textured" backend of Qt ActivityView, allows Android Activities to be embedded as regular Qt Quick Items. This capability means developers can use all of Qt Quick’s features, including transformations, effects, shader effects, animations, and z-ordering, to achieve greater control over their applications' visual and interactive elements.
The code snippet below runs and embeds Desk Clock app in a Qt Quick window.
ActivityView {
id: activityView
width: 640; height: 480;
packageName: "com.android.deskclock"
}
The ActivityView Quick item launches the target activity in an off-screen context, obtains it as an ExternalOES texture, and renders it with a custom QSGMaterialShader. Any touch events received by the item are transformed to match the activity’s actual coordinate space before being forwarded to the underlying activity.
In Qt for Android Automotive 6.8, we revamped the ActivityView Dialogs example to simulate a basic windowing system within a Qt Quick application. It allows you to launch and interact with two predefined apps.
The new public API of the QML ActivityView type has been kept source-compatible with earlier versions of Qt. At the same time, many known issues have been resolved.
Download the latest release here: www.qt.io/download.
Qt 6.9 is now available, with new features and improvements for application developers and device creators.
Check out all our open positions here and follow us on Instagram to see what it's like to be #QtPeople.
Apr 11, 2025
A Heap-buffer-overflow issue in QTextMarkdownImporter has been discovered..
Apr 9, 2025
Qt Group has been authorized by the Common Vulnerabilities and Exposures..
Apr 8, 2025
Qt Gradle Plugin 1.2 (QtGP) is here! If you missed the 1.1 release, I..
Commenting for this post has ended.
Any possibilities or plans to have this on regular Android?
The API can be used on regular Android but it's a part of "Qt for Android Automotive" product.