Execute javascript function from java
<p>I want to know if it's possible to execute a javascript function from java. Basically I have a javascript function to which I want to pass a string and then get the output from that function.</p>

<p>If it's possible, how do I accomplish it?</p>

<p>EDIT - </p>

<p>I couldn't find a solution to this, what I did was re-write all the javascript code in Java. But I am guessing, Rhino ported on Android should do the trick. If someone has tried it out, please post a solution. </p>
