Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to call Python script from Android

Tags:

python

android

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).

like image 674
Damir Avatar asked Sep 01 '11 13:09

Damir


1 Answers

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).

like image 97
Lukas Knuth Avatar answered Oct 24 '22 14:10

Lukas Knuth