Can I use javax.script in Android development, and if so, how?

I am having problems enabling javax.script. *; in an Android project. I need this, so I can use the eval function in JavaScript to efficiently parse arithmetic functions without creating the parser itself (I have absolutely no experience with this and not much time on my hands).

Is it possible to use JavaScript or the eval function or something similar in my Android app?

Thanks for any information you can give me.

+6
source share
2 answers

Execute JS code using webview

+4
source

Try JEXL . It should do what you need, but easier than the entire Javascript interpreter.

+2
source

Source: https://habr.com/ru/post/894447/


All Articles