How to call javascript function from android -Cordova/Phonegap
<p>I'm using cordova/phonegap to make a Android app and trying to call JavaScript funtion from android/native </p>

<p>My main acitvity:-</p>

<pre><code>public class MainActivity extends CordovaActivity
{
    @Override
    public void onCreate(Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);


        // Set by &lt;content src="index.html" /&gt; in config.xml
        loadUrl(Url);

        // TODO call javascripte from here 

    }
}
</code></pre>

<p>My index.html page</p>

<pre><code>&lt;!DOCTYPE HTML&gt;
    &lt;html&gt;
      &lt;head&gt;
        &lt;title&gt;PhoneGap&lt;/title&gt;

        &lt;script type="text/javascript" charset="utf-8"&gt;

        function myFun(){
          alert("call from the ANDROID");
        }
        &lt;/script&gt;

    &lt;/head&gt;
    &lt;body &gt;
    &lt;/body&gt;
    &lt;/html&gt;
</code></pre>

<p>I want call JavaScript function from phonegap.</p>