Android: Is there a way to execute JavaScript from my app?

后端 未结 4 1202
难免孤独
难免孤独 2021-01-19 11:25

I was hoping to find something in the Android sdk similar to the javax.script package in Java; but haven\'t been able to find anything. Am I missing a way to e

4条回答
  •  情书的邮戳
    2021-01-19 12:09

    Rhino is a port of JavaScript that is implemented in Java. It can run on Android with minor tweaks. You can find the code for it as part of the SL4A project.

提交回复
热议问题