How to call Python script from Android

匿名 (未验证) 提交于 2019-12-03 02:20:02

问题:

Is it possible in Android to call Python script? I have already some scripts in Python 2.7 and I want to call that from Android(that script create file and fills with data). To be more specific I am trying to execute Python script on phone, that script connects to some site, download data and do some intelligence and then create file with new data(json on phone).

回答1:

With googles SL4A-project, it's possible to have Python-scripts execute on your Android phone.

Parts of the Android API are wrapped for Python (but not all of it)

You can embed Python-scripts in your application (sounds like your approach).



标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!