title: Saving WebView page to cache
body: <p>I have an app with WebView and I want the app to save the website the first time it is connected to the internet so that a further connection is no longer needed. I know some people are saving WebView pages to cache. I've done some research and I found some answers like <a href="https://stackoverflow.com/a/8410875/2454356">this one</a>.</p>
  
  <p>But the problem is that I would need some example code on how to do this. Could someone give me an example on how to save a webpage .html file to external storage on Android?</p>
  
  <p>This is the only code i've got at the moment to load a webpage.</p>
  
  <pre><code>//Connecting to UI elements
  webView = (WebView) findViewById(R.id.webView1);
  
  //Loading WebView URL
  webView.loadUrl("https://www.easistent.com/urniki/izpis/263/16515/0/0/1");
  </code></pre>
  
  <p>I need some example code. I've seen a lot of documentation and guides, examples on this online but nothing I do works. I'd really appreciate a lot if someone gave me an example with comments.</p>