[Mobile-sig] python on android
janssen at parc.com
Wed Jan 28 19:01:57 CET 2015
Jacob Kruger <jacob at blindza.co.za> wrote:
> ---original message---
> > What I'd like to see is a python distribution for android (I'm aware
> > of the fact that this is mobile-sig and not android-sig, but for me
> > personally android matters a lot more than other mobile platforms)
> I agree, and android is my smartphone platform of choice, and while
> have played around with SL4A - TTS output calls it slang for android -
> in past, among a few others, would like something relatively
> stable/reliable, and best would be to be able to generate .apk files,
> which would include something like python interpreter wrappers around
> the code, or something.
To me, this is a solved problem. I'm running several apps completely
written in Python on my Android phone. I used Kivy (http://kivy.org/,
but https://github.com/kivy is more useful if you're a coder), for the
UI, the API to Android services, and for the packaging into an APK.
The UI is the Kivy set of widgets: http://kivy.org/docs/api-kivy.html
The generic OS API is "plyer": http://plyer.readthedocs.org/en/latest/
The packager is buildozer: http://buildozer.readthedocs.org/en/latest/
I'm amazed at how well it all works.
More information about the Mobile-sig