title: How to enable cookies in android webview?
body: <p>How do I enable cookies in a webview?</p>
  <p>I tried to use</p>
  <pre><code>CookieManager.getInstance().setAcceptCookie(true);
  </code></pre>
  <p>just before calling WebView.loadUrl() and it doesn't work as I get an HTML page error from a website saying cookies need to be enabled.</p>
  <p>How does cookieManager know which webview to enable cookies?</p>
  <p>Say if I had an activity with two webviews in the screen and I only wanted one of those webviews to enable cookies, how is that possible using a CookieManager?</p>
  <p>I feel like I am missing something. I could not find a method like webView.setCookieManager or Cookiemanager.setWebView(webview).</p>