title: Android Load Cache Only is not working. Show WebView offline
body: <p>I'm trying to show some webpages via webview without connecting to the internet. I thought I can save the webpages in the cache and load them from the cache again if there is no connection to the internet. But it's not working. The website don't appear, instead I get that the website is not available right now. I already checked if the <code>AppCachePath</code> is correct with <code>getCacheDir()</code>. Do you have any idea, what I'm doing wrong, or how it works. Would be perfect. Thanks a lot.</p>
  
  <pre><code>webView.getSettings().setJavaScriptEnabled(true);
  webView.getSettings().setDomStorageEnabled(true);
  webView.getSettings().setAppCacheMaxSize(1024*1024*8);
  webView.getSettings().setAppCachePath("/data/data/de.app/cache");
  webView.getSettings().setAllowFileAccess(true);
  webView.getSettings().setAppCacheEnabled(true);
  
  webView.setWebChromeClient(new WebChromeClient() {
      @Override
      public void onReachedMaxAppCacheSize(long spaceNeeded, long totalUsedQuota,
                                           WebStorage.QuotaUpdater quotaUpdater)
      {
          quotaUpdater.updateQuota(spaceNeeded * 2);
      }
  });
  
  ConnectivityManager cm =
  (ConnectivityManager)getSystemService(Context.CONNECTIVITY_SERVICE);
  if(cm.getActiveNetworkInfo() != null &amp;&amp; cm.getActiveNetworkInfo().isConnected() == true)
  {
      webView.getSettings().setCacheMode(WebSettings.LOAD_NO_CACHE);
      webView.loadUrl("http://www.google.de");
  }
  else{
      webView.getSettings().setCacheMode(WebSettings.LOAD_CACHE_ONLY);
      webView.loadUrl("http://www.google.de");
  }
  </code></pre>