I have local html file under my assets folder. I am loading this file in my WebView and I want to call a static Java method from my local web page.
This is what I want to do;
<div class="content">
<div class="welcome">
<p>GeneralConstants.getWelcomeMessage()</p>
</div>
I want to call getWelcomeMessage() method from my local webpage.
Two way communication between JavaScript and your application is possible through
WebView.addJavascriptInterface(). Check this example:http://android-developers.blogspot.com/2008/09/using-webviews.html