Update Documentation - Ring2EXE Chapter.
@@ -326,8 +326,79 @@ Now to build the cards game for Mobile
(3) Build and Run using Qt Creator
+How the Cards game will find the image file ?
+RingQt comes with a simple function : AppFile() that we can use to determine the files that we may
+access on Desktop or Mobile platforms
+The next code from cards.ring
+
+.. code-block:: ring
+
+ mypic = new QPixmap(AppFile("cards.jpg"))
+
+So all what you need is using AppFile() function around your image files!
+
+.. index::
+ pair: Distributing Ring Application using Ring2EXE; Building the Weight History Application for Mobile using RingQt
+
+Building the Weight History Application for Mobile using RingQt
+===============================================================
+
+Another example to distribute your application for Mobile Devices using Ring2EXE and Qt
+
+consider building an Android package for the Weight History application that comes with the
+
+Ring language in this folder : ring/application/weighthistory
+
+The Weight History application folder contains four files
+
+weighthistory.ring : The application source code
+
+weighthistory.db : The SQLite database
+
+project.qrc : The resource file for the Qt project
+
+main.cpp : The main C++ source file for the Qt project
+
+To build the Weight History application for Mobile
+
+(1) Run the next command
+
+.. code-block:: none
+
+ ring2exe weighthistory.ring -dist -mobileqt
+
+(2) Open target/mobile/qtproject/project.pro using Qt creator
+
+(3) Build and Run using Qt Creator
+
+The resource file (project.qrc) contains two files
+
+.. code-block:: none
+
+ <RCC>
+ <qresource>
+ <file>weighthistory.ringo</file>
+ <file>weighthistory.db</file>
+ </qresource>
+ </RCC>
+
+The first file is weighthistory.ringo (Ring Object File - Generated by Ring2EXE by calling Ring compiler)
+
+The database file : weighthistory.db
+
+The main.cpp contains the next little update, To copy the database file from resources to a writable location
+
+on the mobile device
+
+.. code-block:: none
+
+ QString path3 ;
+ path3 = path+"/weighthistory.db";
+ QFile::copy(":/weighthistory.db",path3);
+
+You will need this update with database files only!
