How to make a python code as apk for android? If its possible how to install it? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How to make a python code as apk for android? If its possible how to install it?

For example If I want to make an app just showing "hello world" for my android phone .It should be like any other android apps which we can install,uninstall or share with others. Here is a line of code. So how to install this as an android app? import kivy from kivy.app import App from kivy.uix.button import Button class MyApp(App): def build(self): return Button(text='Hello World') if __name__ == '__main__': MyApp().run()

4th Oct 2020, 11:50 AM
W7G
1 Answer
+ 1
You can't just convert 1 line Python code to android package so look at https://www.kivy.org see this to convert to apk https://kivy.org/doc/stable/guide/packaging-android.html
4th Oct 2020, 11:52 AM
Ananiya Jemberu
Ananiya Jemberu - avatar