Skip to content

Commit 44b1e7b

Browse files
committed
add fast overview about the usage
1 parent 12b60a5 commit 44b1e7b

File tree

1 file changed

+34
-1
lines changed

1 file changed

+34
-1
lines changed

README.rst

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,40 @@ Python for android is a project to create your own Python distribution
55
including the modules you want, and create an apk including python, libs, and
66
your application.
77

8-
Explaination and documentation are available here:
8+
Explaination and documentation are available here::
99

1010
http://python-for-android.rtfd.org/
1111

12+
13+
Global overview
14+
---------------
15+
16+
#. Download Android NDK, SDK
17+
#. Launch "android", and download latest Android platform
18+
#. Export some environment variables::
19+
20+
export ANDROIDSDK="/path/to/android/android-sdk-linux_86"
21+
export ANDROIDNDK="/path/to/android/android-ndk-r7"
22+
export ANDROIDNDKVER=r7
23+
export ANDROIDAPI=14
24+
25+
#. Clone python-for-android::
26+
27+
git clone git://github.com/kivy/python-for-android
28+
29+
#. Build a distribution with OpenSSL module, PIL and Kivy::
30+
31+
cd python-for-android
32+
./distribute.sh -m "openssl pil kivy"
33+
34+
#. Go to your fresh distribution, build the APK of your application::
35+
36+
cd dist/default
37+
./build.py --package org.test.touchtracer --name touchtracer \
38+
--version 1.0 --dir ~/code/kivy/examples/demo/touchtracer debug
39+
40+
#. Install the debug apk to your device::
41+
42+
adb install bin/touchtracer-1.0-debug.apk
43+
44+
#. Enjoy.

0 commit comments

Comments
 (0)