title: Private Browsing is deprecated in Android WebView as of API 17. What is the alternative?
body: <p>The API specification reads as follows for the WebView constructor that allows private browsing to be enabled:</p>
  
  <p>(from <a href="http://developer.android.com/reference/android/webkit/WebView.html" rel="noreferrer">http://developer.android.com/reference/android/webkit/WebView.html</a>)</p>
  
  <p><strong>WebView(Context context, AttributeSet attrs, int defStyle, boolean privateBrowsing)</strong></p>
  
  <p><em>This constructor was deprecated in API level 17. Private browsing is no longer supported directly via WebView and will be removed in a future release. Prefer using WebSettings, WebViewDatabase, CookieManager and WebStorage for fine-grained control of privacy data.</em></p>
  
  <p>As of API 19 (KitKat) private browsing is disabled.  Attempting to invoke this constructor with a value of true results in an IllegalArgumentException. </p>
  
  <p>The alternatives suggested will not be even marginally effective in replicating the behavior of private browsing.  The CookieManager class is a singleton, with all settings being applied to the entire application.  There is no "fine grained control of privacy data" with this approach.  The only control provided by CookieManager is the ability to disable cookies altogether, for EVERY WebView present in the app.  This change means that third-party browsers are no longer able to replicate the private browsing feature of Google's own browser in any capacity.</p>
  
  <p>I'd greatly appreciate any suggestions for working around this behavior.  As of yet I can find nothing in the API that would make any resemblance of the former private browsing capability possible.</p>