Android WebView获取html当前页面

Android WebView获取html当前页面,android,html,webview,Android,Html,Webview,我使用webview,我想获得当前页面的html。 我使用url的示例 webview.loadUrl(“”); 并获取html查看以下问题: 在这里你会得到一个回电 class MyJavaScriptInterface { @SuppressWarnings("unused") public void processHTML(String html) { // process the html as needed by the app } }

我使用webview,我想获得当前页面的html。 我使用url的示例 webview.loadUrl(“”);
并获取html

查看以下问题:

在这里你会得到一个回电

class MyJavaScriptInterface
{
    @SuppressWarnings("unused")
    public void processHTML(String html)
    {
        // process the html as needed by the app
    }
}
每次加载页面时都会调用processHTML