15 | | The [http://sourceforge.net/projects/pyside-android/files/data_python.tgz/download Python 2.6 binaries provided by THP] can be used. This archive also contains !PySide binaries. |
16 | | |
17 | | To be usable, the a ''/data/python'' folder needs to be created on the Android folder, and the ''bin'' and ''lib'' folders need to be copied inside it (this can be easily done with the ''adb push'' command when the device is connected & in debugging mode). |
18 | | |
19 | | Then according to the THP, the main Python binary needs to be made executable: |
20 | | |
21 | | {{{ |
22 | | $ su |
23 | | # chmod 755 /data/python/bin/python |
24 | | }}} |
| 15 | The [http://android-python27.googlecode.com/hg/python-build-with-qt/PyDroid/android/res/raw/python_27.zip the binary Python 2.7 distribution provided by the android-python27 project] can be used. This archive also contains the !PyQt binaries. |
| 16 | |
| 17 | To be usable, the ''lib'' directory needs to be added to ''LD_LIBRARY_PATH'', the corresponding Python directories to ''PYTHONPATH'' and ''bin'' added to ''PATH''. The main ''python'' binary might also need to be set executable. |
| 18 | |
| 19 | '''NOTE:''' You can't launch graphical applications directly on Android as on Desktop or on Maemo. The application needs a launcher that properly loads the Qt libraries and sets-up the enveloping activity. |