Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Run python script inside java on android

Is it possible to run "python" script inside "Java" in an android app? The main app will be Java but some cryptography should be done in "python"
Is it possible to do this?

like image 831
Pouya Abbassi Avatar asked Nov 09 '22 19:11

Pouya Abbassi


1 Answers

Running a python script inside android app is not practical at the moment, but what you can do is creating a HTTP web service for interpreting python and sending back the results to the android application.

Then it's just Android app communicating with a HTTP web service which is simpler than packing an interpreter.

This way it makes the app lighter too.

like image 63
Tommyst001 Avatar answered Nov 14 '22 23:11

Tommyst001