title: How to call a javascript function directly from an activity in Android?
body: <p>I wanted to know if there is any way that I can call a JavaScript function from native Android Activity.  </p>
  
  <p>I came across: </p>
  
  <pre><code>webView.loadUrl("javascript:hello()");
  </code></pre>
  
  <p>But it did not work for me.  </p>
  
  <p>Also, how will Android know in which html page does this JavaScript function reside?  </p>