Changes between Version 5 and Version 6 of PySideForAndroid


Ignore:
Timestamp:
Feb 16, 2013, 6:18:53 PM (11 years ago)
Author:
Martin Kolman
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • PySideForAndroid

    v5 v6  
    5858The resulting !PySide libraries compiled for Android are located in the ''stage/lib'' folder.
    5959
    60 === !PySide for Android example ===
     60=== !PySide for Android example application ===
    6161This is an example, that demonstrates a fully functional standalone Android application that uses Python, !PySide and Qt Components.
    6262
    63 ==== APK ====
     63==== Ready-to-install APK ====
     64A ready-to-install standalone APK is available here:
    6465
     66http://modrana.org/platforms/android/pyside_example/PySideExample_1.1.apk
     67
     68Just install it and press the ''!PySideExample'' icon.
     69
     70===== First start =====
     71If 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.
     72So just install Ministro and everything else will be handled automatically. You might need to press the ''!PySideExample'' icon again once Ministro is installed.
     73
     74Once 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
     76The 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,
     81where 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
     92Size
     93====
     94The example APK has about 16 MB. This is because it needs to bundle quite a lot of
     95libraries and related files. Big part of it is actually not used by the example in any way.
     96
     97For 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 ===
     104A convenient listing of sources for all the components used for the !PySide & co port to Android. :)
     105
     106Shiboken for Android[[BR]]
     107https://github.com/M4rtinK/shiboken-android/tree/android
     108
     109!PySide for Android[[BR]]
     110https://github.com/M4rtinK/pyside-android/tree/android
     111
     112!PySide for Android build scripts[[BR]]
     113https://github.com/M4rtinK/android-pyside-build-scripts
     114
     115Qt Components[[BR]]
     116https://qt.gitorious.org/~martink/qt-components/martinks-ineans-qt-components/commits/android
     117
     118Example program[[BR]]
     119https://github.com/M4rtinK/expyside/tree/android
     120
     121Example project for Necessitas !QtCreator[[BR]]
     122https://github.com/M4rtinK/android-pyside-example-project
     123
     124=== Binary listing ===
     125List of relevant pre-build binaries
     126
     127!PySide libraries[[BR]]
     128http://modrana.org/platforms/android/pyside/
     129
     130!PyQt libraries[[BR]]
     131http://modrana.org/platforms/android/pyqt4/
     132
     133Python 2.7 built for android[[BR]]
     134
     135Qt Components for Android[[BR]]
     136
     137Cut-down Qt Components theme[[BR]]
     138
     139Example application APK[[BR]]
    65140
    66141== Acknowledgement ==