@@ -14,13 +14,13 @@ Global overview
14
14
---------------
15
15
16
16
#. Download Android NDK, SDK
17
-
17
+
18
18
* NDK: http://dl.google.com/android/ndk/android-ndk-r8c-linux-x86.tar.bz2
19
-
19
+
20
20
* More details at: http://developer.android.com/tools/sdk/ndk/index.html
21
-
21
+
22
22
* SDK: http://dl.google.com/android/android-sdk_r21.0.1-linux.tgz
23
-
23
+
24
24
* More details at:http: //developer.android.com/sdk/index.html
25
25
26
26
#. Launch "android", and download latest Android platform, here API 14, which would be Android 4.0
@@ -56,6 +56,43 @@ Global overview
56
56
#. Enjoy.
57
57
58
58
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
+
59
96
Troubleshooting
60
97
---------------
61
98
0 commit comments