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 Mar 1, 2016 at 6:28
Pouya Abbassi
4225 silver badges16 bronze badges
-
Possible duplicate of Java Python IntegrationRaphael Roth– Raphael Roth2016年03月01日 06:41:48 +00:00Commented Mar 1, 2016 at 6:41
-
stackoverflow.com/questions/8898765/calling-python-in-javarofls– rofls2016年03月01日 06:44:03 +00:00Commented Mar 1, 2016 at 6:44
-
2@RaphaelRoth I want to create android app!!!Pouya Abbassi– Pouya Abbassi2016年03月01日 07:36:24 +00:00Commented Mar 1, 2016 at 7:36
-
1then read this first : stackoverflow.com/questions/11120130/…Raphael Roth– Raphael Roth2016年03月01日 07:50:28 +00:00Commented Mar 1, 2016 at 7:50
1 Answer 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.
Sign up to request clarification or add additional context in comments.
Comments
default