Necessitas/Qt4Creator

From KDE Community Wiki

Introduction

Obtaining Necessitas' Qt Creator

After you finish to Install QtCreator or you finish to [Compile QtCreator] you have to set it up. Requirements

   Ant version: Please check your ant version before using Qt Creator, you should at least have ant 1.8.0. You can check with the ant -version command.
   Java Development Kit: The optimal Java Development Kit for Necessitas is the OpenJDK. You can check with the java -version command if you have it, you can also install it if you don't have the OpenJDK with the sudo apt-get install openjdk-6-jdk command.

Configure Qt Creator

You will just need to set up the Qt in Path to the freshly installed Qt for Android Sdk, and to provide the android Sdk to use.

   Previous step should have installed you Qt Creator for Android, you will find a shortcut on your desktop.
   Run Qt Creator for Android and click on Tools > Options, then jump to the Qt4 tab. Just add the qmake path from the Qt For Android Sdk (/opt/necessitas/Android/<qtversion>/bin/qmake by default).
   Give this Qt version a name (e.g. android-lighthouse-4.8.0).

Set Qt Path in Qt Creator Figure 1. Set Qt Path for Qt Creator to Qt Sdk for Android

   Jump to the Android tab.
       Set the path to the Android sdk location, minimum required version for the sdk is android-sdk_r09 ([Setup Android SDK] or download & install instructions).
       Set the path to the Android ndk location, minimum required version for the sdk is android-ndk_r5 (download & install instructions). For a seamless debugging experience you should take a look at [Debugging Qt apps for Android].
       Select the correct Android ndk toolchain version : arm-linux-androideabi-4.4.3.
       Provide the Ant location to Qt Creator (/usr/bin/ant should be the right one, see Ant Official Website to get more information about this java build tool).

Set Android Sdk, Ndk & Ant Path in Qt Creator Figure 2. Set Android Sdk, Ndk & Ant Path - With this view you can even manage the AVDs you created (AVD stands for Android Virtual Device)

   Jump back to the Qt4 tab, select the version of Qt you added previously and build the gdb helpers, so that your debugging output will be clean and easily readable for Qt specific constructs.
   Click Apply & Ok and you are done, you can start using the awesome Qt Sdk for Android.
   You can now try: [How to write Qt apps for Android]