How to make an android app with python Backend?

  1. Developing an Android app with Python as a backend is absolutely possible. There are primarily two methods to make this into a reality. They are
  2. Write Python code and convert it into a android apk
    Write python code as modules and call the python modules from Java or Kotlin

First option can be done by a package builder like buildozer or Python for android. This will also pack the python interpreter in the app itself since the android does not have a python interpretrer.

Second option used a plugin called Chaquopy which will let us call the python modules  from java via the plugin

First option does not require the Android Studio and you need android studio if you take the second route.

We have tried the first route and we were able to generate the android apk from pure python code. The app and the source code and the detailed tutorial on converting the python code code to an working android app can be found here. One more interesting fact is the gui of this python is also governed by the python through frameworks Kivy  and  KivyMD. The gui also looks like it is developed with native tools. Bess thing is all these tools are free and open source.

Example android apps that uses python as a backend

  1. Electron Cash wallet for BCH
  2. Chaquopy: Python for Android
  3. Chaquopy Matplotlib
  4. Tic Tac Toe  developed using Beeware framework
  5. Drawing App  developed using Beeware framework
  6. FlaskWithAndroid  developed using python flask framework
  7. Android ToDo App  where python is used as backend
  8. Instagram Clone
  9. Math Games : Brain Sharpener
  10. 2048 Py
Do you need help in python app development
Do you need help in python app development
Scroll to Top