| 23 | The Necessitas project provides Qt libriries with QML support. Due to Android lacking proper package management, there is an android application called ''Ministro'' that handles library installation requests from ''Necessitas'' using applications. When an application using Necessitas is started for the first time, it redirects the user to the Google Play store to install Ministro (or Ministro II). Once Ministro is installed and its ''service'' is running, the application calls this service to request the Qt Libraries it needs. |
| 24 | |
| 25 | It seems that content of this request is governed by the '''libs.xml''' file in the Necessitas application package - if some libs are missing, this fil needs to be modified. |
| 26 | |
| 27 | There are two Ministro versions: |
| 28 | * Ministro - provides Alpha 2 (0.2) libraries |
| 29 | * Ministro II - provides Alpha 3 libraries (cca 0.34) |
| 30 | |
| 31 | The ALpha 2 Qt libraries provided by necessitas are suable, but have a few issues, for example: |
| 32 | * text both in Qt widgets and QML is rendered as rectangles '''unleess it is set to italic''' |
| 33 | |
| 34 | This is more of a technical overview as from the point of view of the Python application, all this (making sure Ministro is installed & requesting Qt Libraries) is handled by the !PySide Launcher and the application does'n need to be even aware of it. |
| 42 | !PySide programs can't be currently launched from the shell and have to use a special launcher application that makes sure all needed libraires are avalable and provides the application with acces to the screen. |
| 43 | |
| 44 | There is a !PySide Launcher APK on THPs site, but it doesn't work with !QtDeclarative due to missing dependency on libQtOpenGL. |
| 45 | |
| 46 | As a result, the !PySide launcher source needs to be slightly modified and a new APK created. |
| 47 | |
| 48 | |
| 49 | ==== Modified !Pyside Launcher ==== |
| 50 | |
| 51 | |
| 52 | in: |
| 53 | ''pyside-launcher-android/android/res/values/libs.xml'' |
| 54 | |
| 55 | The ''qt_libs'' section should look like this: |
| 56 | {{{ |
| 57 | <array name="qt_libs"> |
| 58 | <item>QtCore</item> |
| 59 | <item>QtGui</item> |
| 60 | <item>QtDeclarative</item> |
| 61 | <item>QtOpenGL</item> |
| 62 | </array> |
| 63 | }}} |