Android Python Programming [closed]
Asked Answered
R

5

112

Can I program for Android using Python? I seem to have stumbled upon many links while searching... however neither of them is concrete.

Any suggestions? I want to write apps for Android but really don't want to get into Java for all this.

PS: My question is whether I can write proper, full fledged apps for Android.

Rim answered 15/11, 2010 at 14:3 Comment(5)
@apps: The difference is that python is fully supported by google to run on android, whereas trying to use android APIs on iphone is not only not supported, it's against apple's TOSChromyl
Even if someone manages to bridge the APIs at 100% without making it buggy, 1: for each new OS version there will be a significant time required to make the Python port up-to-date so it will stay behind always, 2: there would be problems with the closed-source Motorola modification and so on, and 3: the performance would decrease greatly with using such a bridge from one language to another, so there isn't a difference - both options would never happen in the real world.Calvert
@Calvert - You are comparing Apples with oranges.Cephalic
Check out github.com/codelv/enaml-nativeInnsbruck
Here's a step by step guide to python3 on androidShaina
B
44

Checkout Kivy. They have done a really great job so far, and I am a big fan of their work. It is still lacking some providers, but they keep adding new stuff to it everyday. First thing you need to do is to check your requirement against what they can offer based on their documentation. They have create an amazing framework for input such as multi-touch or pen handling. They use OpenGL ES internally, as a result complex graphics and visualizations can run very fast when interacting with the the application. Their process for creating an apk is also very straight forward.

Bronwynbronx answered 31/10, 2011 at 7:21 Comment(2)
it seems the networking support is not really there yet, is this the case or am i missing something?Nall
Kivy is based on Python. Python have lot of libs to handle networking. Kivy have UrlRequest class to do networking asynchronous and integrate with its event loop.Tartary
T
15

Check the new Python for Android project.

Edit: This is not Kivy, this is a seperate project, intended to be a toolchain usable for other toolkit. The architecture is modular, and you can include new recipe for including new python extensions (as brew, macports, cygwin etc.).

Edit: This is not Py4A, but python-for-android.

Tartary answered 8/1, 2012 at 22:2 Comment(0)
T
5

This is great for starters: Embed Python 2.7 interpreter and your scripts into an Android APK

Tricolor answered 14/2, 2013 at 3:3 Comment(0)
I
1

No, not currently. ASE (Android Scripting Environment) allows you to do simple script apps, but you can only write proper Android apps in Java.

Inquietude answered 15/11, 2010 at 14:11 Comment(1)
ASE was renamed to SL4A (scripting layer for android) somewhat recently. code.google.com/p/android-scriptingHerzig
D
0

Yep, you can. Check ASE

Edit: Ok, after comments: I haven't read the question properly. No you can't write write proper, full fledged apps for Android, but anyway check ASE. It is really cool project.

Ditheism answered 15/11, 2010 at 14:8 Comment(2)
This is too limited to do anything useful with itCalvert
he asks My question is whether I can write proper, full fledged apps for Android, so the answer would be noIrv

© 2022 - 2024 — McMap. All rights reserved.