title: Trying to make previous app compatible with Lollipop WebView
body: <p>I'm trying to update an Android app. It was developed with a target API of 21.  It works fine on my API 19 phone (and a few other devices with various build versions), but not on my new API 22 phone.  It's the new WebView package.  The app consists primarily of links to either html assets or to live web pages via string arrays.  The links to the assets work fine, but the links to web sites give me an error. For example:
  "Webpage not available. The webpage at <a href="http://www.ushistory.org/franklin/info" rel="nofollow">http://www.ushistory.org/franklin/info</a> could not be loaded because net::ERR_CACHE_MISS"</p>
  
  <p>I've looked at developer.android.com and other resources and adjusted the code to get this:</p>
  
  <pre><code>    WebView resWebView = new WebView(getActivity());
      WebSettings webSettings = resWebView.getSettings();
      webSettings.setJavaScriptEnabled(true);
      if (Build.VERSION.SDK_INT &gt;= 21) {
          resWebView.getSettings().setCacheMode(WebSettings.LOAD_DEFAULT);
          resWebView.getSettings().setMixedContentMode(WebSettings
                  .MIXED_CONTENT_COMPATIBILITY_MODE);
          CookieManager cookieManager = CookieManager.getInstance();
          cookieManager.setAcceptThirdPartyCookies(resWebView, true);
      }
          resWebView.loadUrl("http://www.ushistory.org/franklin/info ");  
                  scroller.addView(resWebView);
  </code></pre>
  
  <p>I've played with different modes, but it still doesn't work.  What am I missing?</p>