I need to be able to handle a mathematical equation such as "(45 + 9) / 8" in my application. I just wanted to evaluate it using JavaScript, but realized that I can not use javax.script in Android. So, I found WebView, but I have problems using it. Most examples relate to using an external page with JS code or using "javascript: var return ... etc.". I will need to use the latter, but I had problems returning the variable to my application.
Is it possible to use JS eval and then write the value to a hidden TextView?
Rhyono
source share