Skip to content

Instantly share code, notes, and snippets.

@sourcerebels
Created March 28, 2012 17:50
Show Gist options
  • Save sourcerebels/2228676 to your computer and use it in GitHub Desktop.
Save sourcerebels/2228676 to your computer and use it in GitHub Desktop.
Android > WebView > FullEquip WebView
private void configureWebView() {
webView = (WebView) findViewById(R.id.webview);
WebSettings settings = webView.getSettings();
settings.setJavaScriptEnabled(true);
settings.setDomStorageEnabled(true);
settings.setGeolocationEnabled(true);
settings.setJavaScriptCanOpenWindowsAutomatically(true);
settings.setUseWideViewPort(true);
settings.setAppCacheEnabled(true);
settings.setDatabaseEnabled(true);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment