Identification

Vous devez avoir un compte Developpez.com et être connecté pour pouvoir participer aux discussions.

Identifiez-vous
Identifiant Mot de passe
Mot de passe oublié ?
Loading...
Créer un compte

Vous n'avez pas encore de compte Developpez.com ? L'inscription est gratuite et ne vous prendra que quelques instants !

Je m'inscris !
Rubriques
Qt

Qt for Android: How It Works

An overview of architecture, toolchain, and other useful information.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

Qt for Android: How It Works

If you're a developer looking for a high level overview of how Qt supports the Android platform, this page is for you.

The video from the 2021 Qt World Summit gives an overview of Qt for Android.


Cliquez pour lire la vidéo


"A picture of an agenda that links to a YouTube video"

I. Architecture

 

I-1. Activities

The implementation of Qt for Android is made up of three main parts, and the glue in between:

  • Qt Core

  • the Android QPA plugin

  • The Java Android code

"An overview Qt for Android's Architecture"
  • The default entry point for a Qt app is the QtActivity, which upon starting, will call the QtActivityLoader which will try to load the application by calling the QtActivityDelegate.

  • QtActivityDelegate will make the necessary calls to load the Qt libraries and the main app library with the help of QtNative.

  • QtNative handles the various Java operations that don’t need to be exposed, such as: loading the libraries and handling files.

  • The QtActivityDelegate also handles the different listeners and input handlers and propagate them from Java to Qt.

I-2. Services

The architecture here is similar to that of Activities, but with services specific classes.

For information on how Qt supports Services in Android see Android Services.

II. Build configuration

For more information on configuration Qt for Android Builds see Environment Variables Used by Qt for Android and {Qt for Android: CMake}.

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+