| 66 | http://modrana.org/platforms/android/pyside_example/PySideExample_1.1.apk |
| 67 | |
| 68 | Just install it and press the ''!PySideExample'' icon. |
| 69 | |
| 70 | ===== First start ===== |
| 71 | If haven't yet installed any Ministro using Qt application on your Android device, you will be redirected to the Play store to install the Ministro application. Ministro is a manager & updater for the Qt libraries for Android. The example application requires to be installed to run. |
| 72 | So just install Ministro and everything else will be handled automatically. You might need to press the ''!PySideExample'' icon again once Ministro is installed. |
| 73 | |
| 74 | Once Ministro is installed and does it's work, the example might still take some time to start, as it is unpacking Python, Qt Components, theme for Qt Components and the example program to it's working directory. Once the unpacking is finished, the example application will be started. |
| 75 | |
| 76 | The unpacking is done only once on the first application start, following starts are very fast, at least when tested on my device (HP Touchpad with CM9). |
| 77 | |
| 78 | ===== What the example application demonstrates ===== |
| 79 | * sending data to Python and back |
| 80 | -> the content of the entry fild is sent to Python, |
| 81 | where it is painted on the PySide image and returned to QML using ImageProvider |
| 82 | -> the date is retrived in Python and shown in QML |
| 83 | * working text entry with the Android virtual keyboard |
| 84 | * working screen rotation |
| 85 | * correct Portrait/Landscape orientation switching |
| 86 | -> in both normal & inverted orientations |
| 87 | * working notifications (InfoBanner) |
| 88 | * working ToolBar |
| 89 | * working Menu |
| 90 | * "tools" menu with rotation & opacity sliders for the PySide image |
| 91 | |
| 92 | Size |
| 93 | ==== |
| 94 | The example APK has about 16 MB. This is because it needs to bundle quite a lot of |
| 95 | libraries and related files. Big part of it is actually not used by the example in any way. |
| 96 | |
| 97 | For normal applications it should be possible to make the resulting APK much smaller by: |
| 98 | * includding only the PySide libraries that are actually used |
| 99 | * removing unused Python modules |
| 100 | * cutting down the Qt Components theme from all grahics & icons that are not used |
| 101 | |
| 102 | == Links == |
| 103 | === Source code listing === |
| 104 | A convenient listing of sources for all the components used for the !PySide & co port to Android. :) |
| 105 | |
| 106 | Shiboken for Android[[BR]] |
| 107 | https://github.com/M4rtinK/shiboken-android/tree/android |
| 108 | |
| 109 | !PySide for Android[[BR]] |
| 110 | https://github.com/M4rtinK/pyside-android/tree/android |
| 111 | |
| 112 | !PySide for Android build scripts[[BR]] |
| 113 | https://github.com/M4rtinK/android-pyside-build-scripts |
| 114 | |
| 115 | Qt Components[[BR]] |
| 116 | https://qt.gitorious.org/~martink/qt-components/martinks-ineans-qt-components/commits/android |
| 117 | |
| 118 | Example program[[BR]] |
| 119 | https://github.com/M4rtinK/expyside/tree/android |
| 120 | |
| 121 | Example project for Necessitas !QtCreator[[BR]] |
| 122 | https://github.com/M4rtinK/android-pyside-example-project |
| 123 | |
| 124 | === Binary listing === |
| 125 | List of relevant pre-build binaries |
| 126 | |
| 127 | !PySide libraries[[BR]] |
| 128 | http://modrana.org/platforms/android/pyside/ |
| 129 | |
| 130 | !PyQt libraries[[BR]] |
| 131 | http://modrana.org/platforms/android/pyqt4/ |
| 132 | |
| 133 | Python 2.7 built for android[[BR]] |
| 134 | |
| 135 | Qt Components for Android[[BR]] |
| 136 | |
| 137 | Cut-down Qt Components theme[[BR]] |
| 138 | |
| 139 | Example application APK[[BR]] |