[Mobile-sig] Fwd: Experiments with Dalvik

Russell Keith-Magee russell at keith-magee.com
Tue May 17 18:29:33 EDT 2016


Hi David,

On Wed, May 18, 2016 at 3:26 AM, David Boddie <david at boddie.org.uk> wrote:

> On Tue May 17 14:36:31 EDT 2016, Bill Janssen wrote:
>
> > In case you weren't aware, you can just write Android apps and services
> > in Python, using Kivy.  No need to invent another language.
>
> Oh, I know about the CPython solutions on Android, like Kivy and PyQt.
> It was interesting for me to consider how to construct applications that
> don't rely on native libraries to run, or the Android SDK/NDK to build.
> It was interesting to see that projects like Androguard had already done
> a lot of this before.
>
> I chose to try and do something with a Python-like language because it's
> familiar to me. The modules that the compiler uses are more likely to be
> useful to people, especially those doing Jython-like solutions for Android,
> though I realise that going via Java bytecode rather than direct to Dalvik
> is the preferred route.
>
>
This is a really interesting approach - thanks for sharing.

I’ve been doing something similar recently with VOC [1]. I’m targetting
Java bytecode rather than Dalvik, but with a similar end goal: to take
Python source code, and deploy it to Android as a native application
without needing to use the Android NDK. A couple of weeks ago I published a
video showing a native iOS, Android and single-page web app, all doing the
same thing running on Python [2], using this toolchain (plus some other
tools).

Of course, you’ve got the added bonus that you don’t need the Android SDK
either, which would be a huge win in my book. What’s the impact of
Android’s move to ART on this approach?

[1] https://github.com/pybee/voc
[2] https://www.youtube.com/watch?v=RisCgSIWwLA

Yours
Russ Magee %-)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/mobile-sig/attachments/20160518/59778246/attachment-0001.html>


More information about the Mobile-sig mailing list