@@ -14,13 +14,13 @@ Global overview
1414---------------
1515
1616#. Download Android NDK, SDK
17-
17+
1818 * NDK: http://dl.google.com/android/ndk/android-ndk-r8c-linux-x86.tar.bz2
19-
19+
2020 * More details at: http://developer.android.com/tools/sdk/ndk/index.html
21-
21+
2222 * SDK: http://dl.google.com/android/android-sdk_r21.0.1-linux.tgz
23-
23+
2424 * More details at:http: //developer.android.com/sdk/index.html
2525
2626#. Launch "android", and download latest Android platform, here API 14, which would be Android 4.0
@@ -56,6 +56,43 @@ Global overview
5656#. Enjoy.
5757
5858
59+ Bootstraps
60+ ----------
61+
62+ We call bootstraps the part of the toolchain/code that will start your Python
63+ code. For example, Kivy currently require lot of code to start the Activity,
64+ setup the OpenGL ES 2 context, initialize the native environment, extract your
65+ application code, and boot on it. This bootstrap is called "legacy".
66+
67+ Another bootstrap currently in experimentation is "minimal". It use a Native
68+ activity, extract only one file and boot on it, and will start your main.py
69+ directly from the APK. This can be a place to others experimentation such as
70+ pure-python / android applications.
71+
72+ You can select a bootstrap with::
73+
74+ ./distribute -b "minimal" -m "python"
75+
76+ The minimal bootstrap can be used with::
77+
78+ ./build.py --package org.test.minimal --name __minimal --version 1 \
79+ --private ~/code/testmininal/ --minsdk 9 --sdk 14 \
80+ --asset \
81+ debug
82+
83+ Here is a minimal example of main.py for the minimal bootstrap::
84+
85+ import androidembed
86+ print "Hello world, we are entering in a loop!"
87+ while androidembed.poll(1000):
88+ print "Plop"
89+ print "We leaved our hello world!"
90+
91+
92+ Each bootstrap have recommendations and limitations. More informations can be
93+ found at each bootstrap/NAME/README.
94+
95+
5996Troubleshooting
6097---------------
6198
0 commit comments