I have installed Eclipse, pyDev, and Kivy and setup my first project with a main.py file using the instructions found here:
But I'm now stuck on how to create a Hello World Android app and install it on my Android emulator.
Do I need to import any part of the Android SDK? Am I missing anything? I don't even know what to put in my main.py except
EDIT: Ok I figured out how to get it to run in a test window, but I still can't get it to run in an Android virtual device.
Here is the new code:
from kivy.app import App
from kivy.uix.button import Button
return Button(text='Hello World')
if __name__ in ('__main__', '__android__'):
The tutorial that you linked to does not have anything to do with Android.
The title is:
How to use PyDev to develop and run Kivy Applications (on Windows)
note the (on windows) part.
So that I don't think is going to get you anywhere.
It is possible to write python apps for android. See here: https://code.google.com/p/python-for-android/
and here: http://code.google.com/p/android-scripting/
I don't think kivy is going to work on sl4a though. I do believe that they have some support for GUI applications, but it is not nearly as thorough as the java SDK.
Running the kivy apps on the android virtual machine is not supported. You need to use a actual device. for details look here.
The easiest way for now on windows is to::
You should have a apk ready shortly.