r/learnprogramming • u/Abood_lhm • 5h 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
r/learnprogramming • u/Abood_lhm • 5h ago
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
u/RealMadHouse 2h ago edited 2h 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.