Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Kivy for Android apps [closed]

I've just started diving into the Android world. I have a lot of experience programming apps in Python, so I've searching for a good combination "Android + Python", and I think I've found it: Kivy.

I need to make applications that are able to download and upload content from the internet, maybe some connection with the map component included in Android and more stuff to make a nice Android app.

But I really don't want to waste my time on something that maybe won't work. So, does anyone has some experience developing Android apps using Kivy? Is it really useful, simple, possible? Or is there a better option you have in mind?

like image 268
juliomalegria Avatar asked Jan 22 '12 15:01

juliomalegria


People also ask

Why is my Kivy app not working?

you have to write all modules and parent module in requirements which your app is using. To know module which you app is using has two method: run command pip freeze in current app folder in powershell. install all the module as below photo which help to install your application module.

Can Kivy apps run on Android?

You can run Kivy applications on Android, on (more or less) any device with OpenGL ES 2.0 (Android 2.2 minimum). This is standard on modern devices; Google reports the requirement is met by 99.9% of devices.

Is Kivy alive?

New versions of Kivy are being released, New Widgets are being added to the Kivy garden also. This shows Kivy is not dead it is still alive.

Is Kivy better than flutter?

Flutter has support for native UI elements for both android and iOS. 5. Kivy uses some bridge scheme for compiling the code, so it is comparatively slower to develop applications in it. Flutter compiles to native code that runs on Dart VM, which makes it faster to create applications and easier for testing.


2 Answers

I've been using and contributing to kivy for some time, and using it for a big application intended for market. Although still not as complete as native developpment (not sure if using the map Android API is possible at all, but there are alternatives), it works very well, with good performance. The kv language for rapid prototyping is really cool.

And as bonus points, your apps work on windows/linux/mac/ios too… (we still have to try getting on apple store, but technically it works). edit: to this day at least one kivy app has been accepted on apple market, look for "deflectouch" if you are interrested.

As opposed to SL4A, you get a real apk to distribute, with kivy as well as a very nice and slick GUI api, fitted for multitouch apps.

like image 103
Tshirtman Avatar answered Oct 05 '22 16:10

Tshirtman


I believe KivyMaps is pretty similar to what you are trying to do.

If you avoid non-Android platform specific code then your application, should run on Android without any problems.

I suggest looking at Python for Android also, it's a sister project of Kivy aiming to help you create your own Python distribution including the modules you want, and create an apk including python, libs, and your application. Specifically look at its native API wrappers for Android. The project is new so only a few native API's are supported but it might give you an idea on as to how to go about creating a wrapper for Android location service API's if you need that.

As for the Google maps external library, I agree with tshirtman. I'm not sure how it could be used but as the KiviMaps link above highlights there are alternative approaches available.

like image 41
qua-non Avatar answered Oct 05 '22 15:10

qua-non