How we can execute a javascript function and get a return value in our android application?
        Posted  
        
            by 
                JAC
            
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by JAC
        
        
        
        Published on 2012-11-23T10:54:50Z
        Indexed on 
            2012/11/23
            10:59 UTC
        
        
        Read the original article
        Hit count: 248
        
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>
© Stack Overflow or respective owner