Python Forum
Integrating Python Script for Android App
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Integrating Python Script for Android App
#1
Hello all,

I am trying to integrate a python script into an Android App. I have found there are many ways to go about this. I started with, and am still trying to go with google's Flutter app dev kit. I am using Android Studio v 3.3. I have found a python plugin that will allow me to launch an interactive command line console, and if I put the py script in that folder it will find it and run it. Working with that plugin (called Chaqopy) presents its own challenges and also is in straight Java. I have a good GUI going in flutter and I am thinking of just converting the python script to Java or C++ code to re-use it directly in Android Studio.
The python script uses libraries such as socket. Would I have to convert the library as well?

Does anyone have any idea off the top of their head which would be the best way for me to go? If I can launch it in the Java/Plugin project, maybe I should just start there, does that sound easiest?

Thanks
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Kivy App - Python3 script to Android app (opencv) jttolleson 7 3,315 Oct-19-2023, 01:11 PM
Last Post: MasCain
  android e python fece recognition Fabiola 1 683 Sep-13-2023, 04:59 PM
Last Post: albertschmidt
  Integrating Google Drive in App Lahearle 0 439 Jul-19-2023, 05:51 PM
Last Post: Lahearle
  Is there a *.bat DOS batch script to *.py Python Script converter? pstein 3 3,000 Jun-29-2023, 11:57 AM
Last Post: gologica
Question Running Python under Termux on Android tablet dfkettle 1 3,355 Jan-25-2023, 02:34 PM
Last Post: dfkettle
  Python-for-Android:p4a: syntax error in main.py while compiling apk jttolleson 2 1,775 Sep-17-2022, 04:09 AM
Last Post: jttolleson
  Python bot for ADB Android SCRCPY Bizzy_ 3 4,385 May-01-2021, 10:41 AM
Last Post: Larz60+
  Can Embedded Python run any shared library on Android ? sprotz 0 2,265 Nov-08-2020, 12:21 PM
Last Post: sprotz
  How to kill a bash script running as root from a python script? jc_lafleur 4 5,784 Jun-26-2020, 10:50 PM
Last Post: jc_lafleur
  crontab on RHEL7 not calling python script wrapped in shell script benthomson 1 2,247 May-28-2020, 05:27 PM
Last Post: micseydel

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020