Android WebView获取html当前页面
我使用webview,我想获得当前页面的html。 我使用url的示例 webview.loadUrl(“”);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 } }
并获取html查看以下问题: 在这里你会得到一个回电
class MyJavaScriptInterface
{
@SuppressWarnings("unused")
public void processHTML(String html)
{
// process the html as needed by the app
}
}
每次加载页面时都会调用processHTML