How to retrieve HTML content from WebView (as a string)

前端 未结 6 2149
旧巷少年郎
旧巷少年郎 2020-11-30 00:55

How do I retrieve all HTML content currently displayed in a WebView?

I found WebView.loadData() but I couldn\'t find the opposite equivalent (e.g. WebVi

6条回答
  •  情话喂你
    2020-11-30 01:06

    you can pass data via JavaScriptInterface from webview.. i've done this. save the data to an static variable then process under android applcation

提交回复
热议问题