I am trying to create a webview in adroid with private browsing enabled.
public WebView (Context context, AttributeSet attrs, int defStyle, boolean privateBrowsing)
Since: API Level 11
Constructs a new WebView with layout parameters and a default style.
context – a Context object used to access application assets. attrs – an AttributeSet passed to our parent. defStyle – the default style resource ID. privateBrowsing – whether this WebView will be initialized in private mode.
Can anyone please explain me how to implement it with a breif example.
R.id.webview should be in your layout xml. Hope this works…