11

Is it possible to call/run a python script file from Java code on the Android platform using SL4A? Basically I have a full blown Java Android app and I have several Python scripts that scrape some information from various web pages. I would like to be able to call these python scripts with the web page and get the results back. Is this possible? If so, can anyone point me in the direction of an example or two?

Thank you, Harry

0

2 Answers 2

5

run an SL4A script from my application?

http://code.google.com/p/android-scripting/wiki/FAQ#Can_I_run_an_SL4A_script_from_my_application?

Sign up to request clarification or add additional context in comments.

2 Comments

This answers the question. The other answer does not, despite being marked correct.
This link is now broken and the FAQ on the github version of the site does not contain this question . Can someone post the code here? Pretty please?
0

Here you go, a solution on how to make Android applications using SL4A and Python. I have developed a functional Python application following this tutorial so I can vouch for it. I assume you can add the Python code and do your data exchange with JSON.

I personally have never tried to mix these two together, though I will probably try after seeing your post.

Also, if you have any problems/questions, related to starting that example, post them here, I might help.

2 Comments

This does not answer the question, despite being marked correct. The other answer does.
It's not using Python to develop an Android App, but to call Python in an Android App.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.