Execute python script from my android java app

I have an application that will run various python scripts. But I have a problem with python scripts from my java code.

I tried to use QPython , but I will have to start a new intent to run my python code. This is not a problem, but I have to close the QPython intent manually to get the console output back into my application. It didn't work.

Also I looked at sl4a and my android scripting fork but I didn't find any examples of how I can do this from my JAVA code. Thank.

+3


source to share


1 answer


There is a sample project that shows how to execute python scripts on your android devices.



https://github.com/qpython-android/AndroidApp-with-qpython-API

0


source







All Articles