Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

native code in kivyAndroid, possible? #542

Closed
MichaelPython opened this issue Dec 25, 2015 · 4 comments
Closed

native code in kivyAndroid, possible? #542

MichaelPython opened this issue Dec 25, 2015 · 4 comments

Comments

@MichaelPython
Copy link

hello, i am quite comfortable with python and kivy. but one thing that i worry about is, i need to do a lot of calculation in my program, while kivy android doesnt provide ctypes for now (v1.90). so i have to write all code in python? when will kivy android have ctypes?
i read something about renderscript on android. can kivy support renderscript? such as through pyjnius?
thanks.

@akshayaurora
Copy link
Member

Why not just write your native code as c then simply make it into a recipe? like all the other recipes out there use Cython..., use existing libs like Numpy for faster number crunching that already have a recipe.

@MichaelPython
Copy link
Author

sorry i dont know about recipe, nor have i used cython,numpy. currently i am using kivy launcher on android. i write python code in an text editor then run the file with kivy launcher, very convenient to use. but i dont compile app yet. do you mean to compile my own module? or anything else? what tools do i need ?

@inclement
Copy link
Member

ctypes does work on Android.

Edit: It looks like you mean it doesn't work in kivy launcher; the version on google play is probably compiled with an old version of python-for-android that predates ctypes support. If you build your own APK, it should be available automatically.

If this is the case, we should probably try to release a new launcher version.

@MichaelPython
Copy link
Author

yes i mean the launcher(ctypes not working). my kivy launcher was downloaded from kivy.org download page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants