Damir
Damir

Reputation: 56179

How to call Python script from 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).

Upvotes: 5

Views: 3301

Answers (1)

Lukas Knuth
Lukas Knuth

Reputation: 25755

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

Upvotes: 5

Related Questions