3

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

user7090759
  • 67
  • 1
  • 1
  • 2

1 Answers1

2

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).

Community
  • 1
  • 1
  • I would like to advocate that you also take a look at this question https://stackoverflow.com/questions/49955489/android-app-completely-in-python/50595676#50595676 – maroof shittu Jun 01 '18 at 00:47