+ 21

How can I convert python code into android .apk?

Except kivy and django.

7th Mar 2017, 5:11 AM
Giorgi R.
Giorgi R. - avatar
12 odpowiedzi
+ 12
You cannot just convert any Python code to run on Android. However, there are several technologies that allow you to write Python code for Android. https://wiki.python.org/moin/Android Just be aware that you won't be able to access native UI components with Python. Although, you can do a lot with OpenGL ES. If you have an app already written in Python and need to access native UI components then I would suggest manually translating your program logic into Android style Java.
7th Mar 2017, 10:34 AM
Anthony Vanover
Anthony Vanover - avatar
+ 8
Use kivy cross-platform for developing android applications, it is well documented with some demo examples. Using kivy we can also create a package for Windows.. Django is a framework in python suited for developing Web Applications pyqt, wxpython etc.. are suited for GUI.. I love inbuilt module in python named tkinter for GUI..
19th Mar 2017, 3:59 PM
onekpsc
+ 5
use Euro Python
10th Mar 2017, 4:19 AM
Gahan Saraiya
Gahan Saraiya - avatar
+ 4
there is way out.... thanks to python community.... try to use kivy.... thats it
9th Mar 2017, 6:46 PM
Iffi Kakar
Iffi Kakar - avatar
+ 3
can you understand me if i am speaking a language that you don't understand? it is ,somehow, same goes here, Android understands Java (its native language). Python is not but can be understood by using translators or tools. after all for best performance and productivity use Java (using Pythons has many cons).
19th Mar 2017, 6:51 AM
Hasan Al-Yazidi
Hasan Al-Yazidi - avatar
+ 2
yes. if your python's code is write with pyqt. there is many tools for Qt about it...
16th Mar 2017, 7:18 PM
Jessie
Jessie - avatar
+ 1
Euro Python is a conference?
21st Mar 2017, 6:04 AM
Debadatta Bhattacharjee
Debadatta Bhattacharjee - avatar
+ 1
May be buildozer might help you.
12th Apr 2020, 8:29 AM
Sagar Singh
Sagar Singh - avatar
0
Use Euro Python
20th Mar 2017, 6:28 PM
Otaku_kun
Otaku_kun - avatar
0
How do you use beware?
17th Jan 2021, 3:53 AM
Ireneo language
- 1
go to the github url this project is devoloped by google not maintaining https://github.com/damonkohler/sl4a
3rd Aug 2017, 2:46 PM
athuldevin
athuldevin - avatar
- 4
android has java as native language. but you can write android application in C# with visual studio and Xamarin. when python will be compatible .NET, you will be able to build android application with python code
21st Mar 2017, 8:17 AM
Jessie
Jessie - avatar