2

I have a webview that displaying authenticated web page.

I need to save the content of the page for offline use. Or even I need to get the Html content of the URL that is already authenticated through webview.

Is it possible?

I can't able to get the URL contents through HttpRequest, as the server expects authentication.

Shahul3D
  • 2,129
  • 1
  • 15
  • 16

1 Answers1

0

Finally I found the way to save webview contents offline.

I have implemented addJavascriptInterface() to the webview and got the full page contents thought a javascript call that return all the contents of current page's element.

Please refer this for further details: Android- using addJavaScriptInterface to return a value from Javascript

Community
  • 1
  • 1
Shahul3D
  • 2,129
  • 1
  • 15
  • 16