Answer the question
In order to leave comments, you need to log in
Quickly build an Android application in Python (Kivy?). Is it worth it?
I ask for advice on choosing a language / framework for developing an android application with a GUI.
It is necessary to build an application for an android tablet in order to turn this tablet into a mobile operator console for controlling and collecting data from some industrial piece of iron.
The functionality is approximately the following:
- communication with the hardware itself via a serial port via a ZigBee modem;
- GUI for the operator with all sorts of buttons and pictures;
- processing, data received from the piece of iron, storing them in the database;
- be able to draw a report with numbers and pictures so that it can then be transferred somewhere from the device and printed on a printer.
There is little data, the mathematics is quite simple, everything is simple here. (Although it would not be bad to connect something like numpy).
I am not a programmer, I only have a small successful experience of programming such things on a PC, where it is ideally solved using Python + ReportLab also allows you to quickly rivet reports immediately into pdf. There is no experience with mobile devices at all, so the first thought was to try again to do everything in Python. After reading a little on this topic, I came to the conclusion that in order to develop a full-fledged-looking application for Android in Python, there is only one more or less popular solution - this is Kivy. (There are also a couple of niche solutions like PyBee, but they are still poorly developed and you should not bet on them).
That. there are two options:
1) Kivy;
2) use the native Java for android, which still needs to be studied. I'm afraid to fail.
In addition, I did not understand yet whether it would be possible to attach some kind of library for drawing pdf to Kivy. Maybe in the end it will be easier to implement everything in Java.
Maybe you have already solved a similar problem? What do you advise?
Answer the question
In order to leave comments, you need to log in
I've been interested in this for a while too.
And I found a ready-made virtual machine from the kivy developers, in which everything is set up and you don’t have to mess around with anything. You just write the code inside it, create the buildozer.spec file, type in the application folder
or
And you get a ready-made .apk file that you can upload to your phone and run.
The virtual machine can be downloaded from here:
https://github.com/Zen-CODE/kivybits/tree/master/K...
Admin password: kivy
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question