Open GoogleCodeExporter opened 8 years ago
See
http://code.google.com/p/android-python27/wiki/TutorialHowToRunPythonfromShell
Original comment by anthony....@gmail.com
on 26 Mar 2013 at 9:10
Sorry, I meant how to do it from an APK. Say, I have some library written in
Python that takes input and produces output I want to display in my app, how
would I approach that?
Original comment by overv161@gmail.com
on 26 Mar 2013 at 9:11
If possible, it would be even better if the process could be running for a
while and accept input at any time. That's because the library takes some time
to start up.
Original comment by overv161@gmail.com
on 26 Mar 2013 at 9:13
Do you have example ?
Would smth like that fit ?
p = Popen(your_cmd, shell=True, stdin=PIPE, stdout=PIPE, stderr=STDOUT)
(stdout, stderr) = p.communicate()
Original comment by anthony....@gmail.com
on 26 Mar 2013 at 9:17
Original issue reported on code.google.com by
overv161@gmail.com
on 26 Mar 2013 at 9:09