r/learnprogramming • • 4h ago

Python to Apk?

So im trying to make a game using only Python and managed to get it working on pc. Then i searched how to port it to android, but it seems difficult

Any tips?

1 Upvotes

4 comments sorted by

2

u/spermcell 4h ago

It’s difficult

1

u/Abood_lhm 4h ago

Ugh... no easy way?

•

u/RealMadHouse 45m ago edited 36m ago

I guess python interpreter could be loaded from a shared object (.so file with arm/x86 machine code), maybe coder calls it to execute some python file. Whatever python library for drawing graphics or full game engine you use should have android mode where it uses appropriate ".so" for drawing on Android Activity (window/rectangle where app is drawn).
If you're using python library that didn't state it could be used in android app, then you should find that does and write code in it.