3

Is it possible to evaluate a string of python code (or Perl) from Java when developing Android applications?

I am trying to do something like evaluating a text-input script:

String script = text1.getText().toString(); String result = PythonRuntime.evaluate(script); text2.setText(result); 

2 Answers 2

5

In case you weren't aware of it, the Android Scripting Environment might be useful to you, though I don't think it does exactly what you're looking for.

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

1 Comment

Not really what I'm looking for.
4

Jython and its derivatives should be able to do this. See also Jythondroid.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.