webview.loadData() doesn't fire js alert()s
<p>I've got a webview that loads a local html file with some javascript.  The problem I'm having is that I'm not getting any alert()s.  I've tried several workarounds like using the WebChromeClient, and attaching a JavascriptInterface with addJavascriptInterface() but I still don't get any alert()s.</p>

<p>Is this something that is disabled by design?</p>

<p>Here's some code...</p>

<pre><code>   public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.web);

    WebView wv=(WebView)findViewById(R.id.web1);
    wv.getSettings().setJavaScriptEnabled(true);
    wv.setWebChromeClient(new WebChromeClient() {  
        @Override
        public boolean onJsAlert(WebView view, String url, String message, JsResult result) {
                    //Required functionality here
                    super.onJsAlert(view, url, message, result);

                    Toast.makeText(DirectionsActivity.this, message, Toast.LENGTH_SHORT).show();
                    return true;
           }
    });

    String s = readAssetFile("test.htm");//&lt;--contains js
    wv.loadUrl(s,"text/html",null); 
}
</code></pre>
