
Nathan L. answered 08/16/19
Purdue University Grad For Math/Science Tutoring and College Prep!
Hi Sid.
There are many ways to do this! Unfortunately, The official language for Android development is Java - not Python, so we have to circumvent this issue. My personal advice would be to put your Python application in the cloud as an API, and then write a Java application that communicates with the Python application over the internet (however this would require an internet connection to use the app).
More specifically, you can convert your Python application to an application programming interface (API) using Flask, and then put that API on either an Amazon Web Service server, a Google Cloud Server, or you could deploy it using something like Heroku or Digital Ocean.
Once this is done, you can then write a Java application that simply calls your python app from the cloud and displays the data/calculations/machine learning predictions you've made.
Otherwise, you could work with some of the open-sourced libraries like BeeWare or Chaquopy to interface your python code with the native android environment.
I hope this helps!
Nathan