Running python on Android
Base on Common Language Extension CLE
Support python2.7 script execution
The execution result is recorded by log.d at present. Check it by logcat.
- Put your target
.pyfile toassetsdirectory - use code like:
Service._DoFile("python", appFile.getPath() + "/<FILENAME>.py", "");
python._Call("<FUNC_NAME>");`
use Service._RunScript("python", script , "", ""); to execute script string with python.
- Third Party Library Adaptation
- Python3.4+ support