=======================================
Building RingQt Applications for Mobile
=======================================
=======================================
Building RingQt Applications for Mobile
=======================================

In this chapter we will learn about Building RingQt Applications for Mobile.


Download Requirements
=====================

Check the next link : http://doc.qt.io/qt-5/androidgs.html

Download 

* The Android SDK Tools

	https://developer.android.com/studio/index.html

* The Android NDK 

		https://developer.android.com/ndk/index.html

* Apache Ant v1.8 or later 

		http://ant.apache.org/bindownload.cgi

* Java SE Development Kit (JDK) v6 or later

		http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html

Update the Android SDK
======================

Update the Android SDK to get the API and tools packages required for development

Install Qt for Android
======================

* You can install Qt for Android from the next link

		https://download.qt.io/archive/qt/5.5/5.5.1/

* Run Qt Creator, Select Tools > Options > Android to add the 
    Android NDK and SDK paths. 

		http://doc.qt.io/qtcreator/creator-developing-android.html

*  Using Qt Creator Open the project 

	Folder : ring/android/ringqt/project

	Project file : project.pro

* You will find the code in resources\test.ring

	You can modify the code then build and run for Desktop or Mobile.

Comments about developing for Android using RingQt
==================================================

(1) The main project file is main.cpp 

	This file load Ring Compiler/Virtual Machine and RingQt 

	Then copy files during the runtime from the resources to temp. folder 

	Then run the test.ring

	Through main.cpp you can extract more files from the resources to temp. folder once you
	add them (create projects with many files).

(2) The next functions are missing from this Ring edition

	* Database (ODBC, SQLite & MySQL)

	* Security and Internet functions (LibCurl & OpenSSL)

	* RingAllegro (Allegro Library)

	* RingLibSDL (LibSDL Library)

	Just use Qt Classes through RingQt.

	For database access use the QSqlDatabase Class

..note:: All of the missing libraries ((LibCurl, OpenSSL & Allegro) can be compiled for Android, but they are not included in this Qt project.
Update Documentation - Building Mobile Applications using RingQt.
Update Documentation - Building Mobile Applications using RingQt.
