开发者

View HTML source of file loaded in WebView [duplicate]

This question already has answers here: Closed 10 years ago.

Possible Duplicate:

How do I get the web page contents from a WebView?

I want the html source code of the html file that has been loaded into my WebView.

By searching a lot, I came to know that it should done using the WebViewClient. Can anyone tell me how can t开发者_StackOverflowhis be done?


Advice on this question Is there a way to get the HTML in a webview in an Android app? may help.


The Android WebView source code can be found here:

http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/2.2_r1.1/android/webkit/WebView.java

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜