Kivy (next PyMT) on Android, step 1 done !

Tonight is a wonderful night.

I know that i didn’t announce Kivy officially yet, but i’ll do it in another blog post very soon. You just need to know that Kivy is the next PyMT version. From 2 years ago with thomas, we have regulary doubts and reflections about using Python for PyMT. And i’ve started to look more at the future, and i was deeply convince that for our sake, we must be able to run on a Webbrowser. The goal is simple: same code for every platform, at least what we use every day: Linux / Windows / Macosx / Android / iOS.

Android and iOS are new OS, and we was thinking that except running in webbrowser, we will be never able to run on it. And we have started to target a futur with fewer dependencies, OpenGL ES 2.0 compatible, and so on. This vision have been named Kivy. Theses last days, i’ve removed numpy and pyopengl dependencies. Pygame is the only library required for running an application with widgets. (minimal don’t mean full featured).

And i’ve started to look at the android platform, since Tom from Renpy library have deliver a pygame subset for android. He just made an awesome work. My part was just to understand how it work, and get Kivy compilation done.

For now, here is what i’ve got :

Ok, but what i got exactly ?

  • Python/Pygame running from renpytom project
  • Failed attempt to use numpy on android
  • Kivy adapation for android (opengl debug mode, removing numpy and pyopengl, link on opengl es 2.0…)
  • Pygame change to create OpenGL ES 2.0
  • Various patch on the build system

And here is my step 2 :

  • Send to upstream all the patch on the build system
  • Resolve symbol conflict when 2 compiled module have the same name (kivy.event and pygame.event… nice naming.)
  • Add a way of detecting Android platform from python
  • Add multitouch support to pygame and/or kivy
  • Add android sleep/wakeup in kivy
  • Write documentation about how to compile a kivy application on android

For now, sleep time ! Enjoy.

4 thoughts on “Kivy (next PyMT) on Android, step 1 done !

  1. Aras

    Great work Mathieu!
    I cant wait to try Kivy on my android phone :). This is a big jump and a really good one too.
    I am specially curious about how transition from PyMT to Kivy should be done for existing application.
    Looking forward to hear more about your progress with Kivy, keep us posted 🙂

  2. Github hello,

    my name is jony I work in a epmresa in Spain and we are very interested in this new multitouch technology.

    I personally made an application with restaurant tables PYMT for multitouch, and we have some more projects being studied.

    I would like to guide and work with Kivy, works with python, that use application programming.

    Also able to contribute our part and spread Kivy code on the Internet.

    Really that is not very good English, is by the translator.

    Jony In watchful waiting,


  3. ivan

    just yeasterday wrote mine first app for PyMT,
    and today i m already googling “pymt android”
    Hooray Kivy, go ahead Mathieu, we are with you, waiting…

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.