Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I write an Android app in Python? [duplicate]

Tags:

python

android

I want to write an Android app in Python, something along the lines of converting a .py file to an APK.

like image 682
user7090759 Avatar asked Feb 12 '26 17:02

user7090759


1 Answers

A few points: first, there's actually a lot more to an APK than just zipping up bytecode (e.g. application manifest, resources, etc.), so it doesn't really make sense to talk about "converting" a Python file to an APK.

Secondly, I wouldn't encourage this. I'd strongly encourage using Xamarin Forms, Cordova, Java, or Xamarin.Android instead. The advantage of Xamarin Forms or Cordova is that you can create cross-platform applications with a single code-base. In terms of platform-specific development, Xamarin.Android and Java both have very good tool support (through Android Studio and Visual Studio).

With that said, there's an answer here you can use if you insist on using Python. There are a number of frameworks available as well, such as QPython and Kivy (which is designed for cross-platform apps, analogous to Xamarin Forms for C# and Cordova for JavaScript/html5).

like image 64
EJoshuaS - Stand with Ukraine Avatar answered Feb 15 '26 06:02

EJoshuaS - Stand with Ukraine



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!