Qt for Android Examples

This page lists Qt examples that have been tested to run on Android. However, most Qt Examples can be run on Android even though they are not listed here.

Running the Examples

To run examples from Qt Creator, select Welcome > Examples, and then select an installed Qt for Android to filter the examples that have been tested to run on Android. For more information, see Building and Running an Example.

Essentials

The following sections describe how to get started with developing applications for Android:

Qt Android Extras is an Android specific module used to integrate Qt API with Java API by enabling communication between Qt code (C++ and QML) and Java code. The following examples demonstrate some of the features of the module:

  • Qt Notifier demonstrates how to call Java code from an Android application.
  • Qt JNI Messenger demonstrates communication between Java code and QML or C++ using JNI calls.
  • Android Custom Activity demonstrates working with custom Android activities.
  • Qt JNI Music List demonstrates how to exchange data from complex Java objects.
  • Android Service with Qt Remote Objects demonstrates how to run an Android service, and how to communicate between the service and the app using Qt Remote Objects.

For the full list examples, see Qt Android Extras Examples.

Qt Quick and QML Examples for Android

The following Qt Quick and QML examples are useful when developing applications for Android. For a full list of Qt Quick examples including beginner-level tutorials, see Qt Quick Examples and Tutorials.