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?
Asked
Active
Viewed 3,934 times
5

Pouya Abbassi
- 422
- 5
- 15
-
Possible duplicate of [Java Python Integration](http://stackoverflow.com/questions/1119696/java-python-integration) – Raphael Roth Mar 01 '16 at 06:41
-
http://stackoverflow.com/questions/8898765/calling-python-in-java – rofls Mar 01 '16 at 06:44
-
2@RaphaelRoth I want to create android app!!! – Pouya Abbassi Mar 01 '16 at 07:36
-
1then read this first : https://stackoverflow.com/questions/11120130/programming-android-apps-in-jython – Raphael Roth Mar 01 '16 at 07:50
1 Answers
1
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.

Tommyst001
- 26
- 5