Changes between Version 17 and Version 18 of PySideForAndroid


Ignore:
Timestamp:
Feb 17, 2013, 6:27:51 PM (11 years ago)
Author:
Martin Kolman
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • PySideForAndroid

    v17 v18  
    143143
    144144===== Replacing the application =====
     145The application is located in: {{{android/res/raw/my_python_project.zip}}}
     146
     147This file is decompressed into the {{{/data/data/org.modrana.PySide.Example/}}} folder on first start after installation. Then {{{/data/data/org.modrana.PySide.Example/main.py}}} is run by Python.
     148
     149To replace the example application, just replace the contents of {{{my_python_project.zip}}}, if you want to start other file than {{{main.py}}}, just change the ''MAIN_PYTHON_FILE'' path in {{{main.h}}} .
    145150
    146151===== Replacing Python =====
    147 
    148 ===== Replacing PySide libraries =====
     152The project contains two Python "bundles", one is used to compile the application wrapper and is located in {{{build_dependencies/python}}}, the other one is in {{android/res/raw/python_27.zip}}} and is deployed on first start after installation into {{{/data/data/org.modrana.PySide.Example/python}}} with all other bundled libraries and files in this archive.
     153
     154When replacing Python, you should probably replace both bundles with the same Android-compiled Python version, or at least use the same series (2.7 & 2.7 not 2.7 & 2.6).
     155
     156===== Replacing !PySide libraries =====
     157The PySide libraries are located in {{android/res/raw/python_27.zip}}} archive in the ''lib'' folder. This folder is deployed to {{{/data/data/org.modrana.PySide.Example/python/lib}}} on the device.
     158
     159When replacing PySide, you need to replace the libshiboken and libpyside:
     160{{{
     161lib/libshiboken.so
     162lib/libpyside.so
     163}}}
    149164
    150165===== Replacing Qt Components =====
     166
    151167
    152168== Ideas for improvement ==