News for hackers. Stuff that matters.
Re:Python on Android? First impressions of Kivy by lbotos on Saturday October 20, 2012 @04:43PM (#4678169)
Has anybody had any luck with Kivy on iOS? I'm interested in it and wondering any thoughts/experiences?
Re:Python on Android? First impressions of Kivy by sxp on Saturday October 20, 2012 @07:12PM (#4678442)
There is also http://code.google.com/p/android-scripting/ for running Python and other scripting languages on Android. I've used it in the past when I needed to use my phone as a fancy calculate and wrote some Python to perform the calculations.
Re:Python on Android? First impressions of Kivy by patrickod on Saturday October 20, 2012 @09:07PM (#4678601)
I used it to hack together a small app for background data collection a while ago. The only problem was instability. I gave the script to family and friends to run on their phones and collect more data but it was a pain teaching them how to restart it when it died which it frequently did. Not sure if this has been resolved in the last 18 months.
Re:Python on Android? First impressions of Kivy by neurostimulant on Sunday October 21, 2012 @07:52AM (#4679484)
I used it on my old htc espresso for a while now. Earlier this year I tried it on my friend's htc evo 3d and it didn't work. It seems that it didn't support arm11 devices. It is too bad since I was trying to convince him to try python :(. I don't know if it support arm11 devices now.
Re:Python on Android? First impressions of Kivy by samuel on Sunday October 21, 2012 @02:28AM (#4679162)
I don't understand exactly how this works. You have an Python API for controlling the UI, great, but... can you use the full Python capabilities and expect your app to be portable? If yes, How it works? Is the app compiled to Dalvik bytecode when ported to Android for example? Are you restricted to pure Python modules or something?
Re:Python on Android? First impressions of Kivy by realrocker on Sunday October 21, 2012 @07:22AM (#4679463)
It works on Pygame for Android library which is the launcher. The code written is in python and cython with bindings to a few Android API's. The compiled code is python object code which runs on the launcher. It is not dalvik bytecode and not portable.
Re:Python on Android? First impressions of Kivy by stefantalpalaru on Sunday October 21, 2012 @04:43AM (#4679283)
It seems to package the Python interpreter on Android: http://kivy.org/docs/guide/packaging-android.html
Re:Python on Android? First impressions of Kivy by samuel on Sunday October 21, 2012 @09:22AM (#4679654)
I have read a bit about this Python on Android, and it seems that uses Android's NDK, which allows to port C/C++ programs to Android. I wasn't aware that this was possible. I thought that only bytecode was allowed for security reasons.
Re:Python on Android? First impressions of Kivy by jswanson on Sunday October 21, 2012 @10:48AM (#4679791)
I was curious as to how well this comes across on iOS devices, and came across this while poking around the Kivy site:

  We haven't published our demos, but the winner of Kivy game contest #1 have been packaged for IOS: Deflectouch on iTunes.
Linking to this: https://itunes.apple.com/us/app/deflectouch/id505729681

It's free, and a fun little game. It feels non-native, but less so than some of the other apps out there. It interprets touch events smoothly enough, and runs well, though there isn't a lot going on so that's not a real indicator of performance.

Re:Python on Android? First impressions of Kivy by realrocker on Sunday October 21, 2012 @11:02AM (#4679820)
The people who are wondering what is this project good for. Apart from the obvious ease of using OpenGL widgets to create your UI, it has other benefits too. For example: Imagine an interactive books app. This app is actually a store for interactive books. Using Kivy, you can update this app with both logic(code) and data(assets), thus introducing a new book. Initially your books may be low on animations but as you get better at it, you insert complex animations. All that without changing the base launcher code(well, except when the base launcher library is updated once or twice a year).