Is it possible to pass a value to the URL mentioned in webView.loadUrl? something like this??
webView.loadUrl(\"file:///android_asset/www/index.html#value=\"
I found the solution.. posting it here for the sake of others :)
I added the following snippet of code in my Activity class which solved the problem,
webView.setWebViewClient(new WebViewClient() {
@Override
public void onPageFinished(WebView view, String url)
{
webView.loadUrl("javascript:callMe(\""+data_val+"\")");
}
});
Thanks all :)