A new project named "Python For Android" has been launched. The goal of this project is to package your python application into an APK. The project is under the umbrella of Kivy organization, but is not designed to be limited to Kivy only, its a opensource project. To that end, the packaged applications currently only have one "bootstrap" which decompresses the files, creates an OpenGL ES 2.0 surface for drawing and sets up to handle audio and touch events. Although built for the Kivy project, the developers welcome anyone prepared to create a new lighter bootstrap mechanism. Python has been executable on Android through the Android Scripting project, but that doesn't create simple-to-install, self-contained binary files.
Overview:-
- Download Android NDK, SDK
- Launch "android", and download latest Android platform
- Export some environment variables:
export ANDROIDSDK="/path/to/android/android-sdk-linux_86" export ANDROIDNDK="/path/to/android/android-ndk-r7" export ANDROIDNDKVER=r7 export ANDROIDAPI=14
- Clone python-for-android:
git clone git://github.com/kivy/python-for-android
- Build a distribution with OpenSSL module, PIL and Kivy:
cd python-for-android ./distribute.sh -m "openssl pil kivy"
- Go to your fresh distribution, build the APK of your application:
cd dist/default ./build.py --package org.test.touchtracer --name touchtracer \ --version 1.0 --dir ~/code/kivy/examples/demo/touchtracer debug
- Install the debug apk to your device:
adb install bin/touchtracer-1.0-debug.apk
- Enjoy.
LINK TO OUR HOME PAGE :

