Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Use python code for build android app in android studio [closed]

i have some python code and it is chatbot and i'm looking for a way to use those python code inside the android project there any way to do this? Please help...

like image 581
user5199809 Avatar asked Aug 29 '17 11:08

user5199809


People also ask

Can we make Android app using Python in Android Studio?

You can definitely develop an Android app using Python. And this thing is not only limited to python, you can in fact develop Android applications in many more languages other than Java. Yes, in point of fact, Python on android is a lot easier than Java and much better when it comes to complexity.

How can I run a Python script inside my own Android application?

You can use SL4A project which would allow you run your Python code on Android. Show activity on this post. Check out Qpython, could be an easy solution. You can run your python script against the Qpython android python core, or deploy yours.

Can APK be written in Python?

Yes, that is possible and this article is directed towards explaining and demonstrating to the readers how an android app can be written in Python. The framework for this task will be employed as Kivy and APK packaging will be executed by Buildozer.


1 Answers

There are two main tools to use, that are different from each other:

  • QPython
  • Kivy

With Kivy, roughly the same code can be deployed to IOS as well.

like image 83
jeffmcneill Avatar answered Oct 27 '22 10:10

jeffmcneill