Changes between Version 30 and Version 31 of PySideForAndroid
- Timestamp:
- Feb 17, 2013, 11:32:14 PM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
PySideForAndroid
v30 v31 7 7 * how to use the resulting libraries 8 8 * and how to bundle them with your Python program in a standalone APK 9 '''NOTE:''' If you just wan 't to run you Python & !PySide programs on Android, you can skip the ''Building !PySide'' section and go directly to [wiki:PySideForAndroid#PySideforAndroidexampleapplication PySide for Android example application] & [wiki:PySideForAndroid#ExampleprojectfortheNecessitasQtCreator Example project for the Necessitas Qt Creator]9 '''NOTE:''' If you just want to run you Python & !PySide programs on Android, you can skip the ''Building !PySide'' section and go directly to [wiki:PySideForAndroid#PySideforAndroidexampleapplication PySide for Android example application] & [wiki:PySideForAndroid#ExampleprojectfortheNecessitasQtCreator Example project for the Necessitas Qt Creator] 10 10 11 11 … … 49 49 It first builds Shiboken, followed by !PySide. The script is fully automatic, but waits for the user to ''press any key'': 50 50 * after Shiboken is configured for build 51 * after Py side is configured for build51 * after PySide is configured for build 52 52 Like this you can easily check for any errors during configuration. 53 53 … … 88 88 ===== What the example application demonstrates ===== 89 89 * sending data to Python and back 90 * the content of the entry fi ld is sent to Python, where it is painted on the !PySide image and returned to QML using !ImageProvider91 * the date is retri ved in Python and shown in QML90 * the content of the entry field is sent to Python, where it is painted on the !PySide image and returned to QML using !ImageProvider 91 * the date is retrieved in Python and shown in QML 92 92 * working text entry with the Android virtual keyboard 93 93 * working screen rotation … … 108 108 109 109 For normal applications it should be possible to make the resulting APK much smaller by: 110 * includ ding only the !PySide libraries that are actually used110 * including only the !PySide libraries that are actually used 111 111 * removing unused Python modules 112 * cutting down the Qt Components theme from all gra hics & icons that are not used112 * cutting down the Qt Components theme from all graphics & icons that are not used 113 113 114 114 === Example project for the Necessitas Qt Creator === … … 116 116 117 117 ==== Using the project ==== 118 Using the project to build your own project is very easy. Just install the [http://necessitas.kde.org/necessitas/necessitas_sdk_installer.php Necessitas sSDK] and clone the example project from git:118 Using the project to build your own project is very easy. Just install the [http://necessitas.kde.org/necessitas/necessitas_sdk_installer.php Necessitas SDK] and clone the example project from git: 119 119 {{{ 120 120 git clone git://github.com/M4rtinK/android-pyside-example-project.git