I have an android application in which I need to get the HTML code of the page that will be loaded in the webview. This code I need to get it even before the page loads in the webview and act accordingly.
I am trying to capture the URL that would be loaded in the method
“public void onPageStarted(WebView view, String url, Bitmap favicon)”
But what is the way to get the HTML code of the page that would be loaded in the webview?
I don’t know for how to get webview content, but I am using this for code of webpage
The second method is,