How we can execute a javascript function and get a return value in our android application?
- by JAC
How we can execute a javascript function and get a return value in our android appplication ?
We have a javascript file that stored in our sqlite db, We want to execute that script on a button press event, we need to pass parameters to the script and get return values, how we can implement this?
sample script file stored in Db is,
<html><head><title>ADV</title><script type="text/javascript">
function checkName(pname)
if( pname == 'android')
{
return false;
}else
{ return true;
} }
</script></head><body></Body></html>