Best code examples for Android WebSettings class (android.webkit.WebSettings)

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Android WebSettings class.
You can now enable Codota on your own code to easily search and navigate your Java codebase.

Android WebSettings examples from Open Source projects
This code example shows how to use the following methods: setJavaScriptCanOpenWindowsAutomatically, setJavaScriptEnabled, setLayoutAlgorithm
98:	settings.setJavaScriptEnabled(true); 
99:	settings.setJavaScriptCanOpenWindowsAutomatically(true); 
100:	settings.setLayoutAlgorithm(LayoutAlgorithm.NORMAL); 
-
106:	WebViewReflect.setStorage(settings, true, "/data/data/" + appPackage + "/app_database/"); 
Full Snippet Info
9
CodeRank
This code example shows how to use the following methods: setCacheMode, setDomStorageEnabled, setJavaScriptEnabled, setSaveFormData, setSavePassword
28:	settings.setSavePassword(true); 
29:	settings.setSaveFormData(true); 
30:	settings.setJavaScriptEnabled(true); 
31:	settings.setSupportZoom(false); 
32:	settings.setCacheMode(WebSettings.LOAD_NO_CACHE); 
33:	settings.setDomStorageEnabled(true); 
34:	settings.setSupportMultipleWindows(false); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: setAppCacheEnabled, setDomStorageEnabled
39:	settings.setAppCacheEnabled(true); 
40:	settings.setDomStorageEnabled(true); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: setDatabaseEnabled, setDatabasePath
81:	settings.setDatabaseEnabled(true); 
-
85:	settings.setDatabasePath(databasePath); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: setAppCacheEnabled, setAppCacheMaxSize, setDatabasePath, setDomStorageEnabled, setGeolocationEnabled
205:	settings.setJavaScriptEnabled(true); 
206:	settings.setJavaScriptCanOpenWindowsAutomatically(true); 
207:	settings.setGeolocationEnabled(true); 
208:	settings.setDomStorageEnabled(true); 
-
210:	settings.setDatabasePath(databasePath.toString()); 
211:	settings.setAppCacheEnabled(true); 
212:	settings.setAppCacheMaxSize(1024 * 1024 * 4); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: setJavaScriptEnabled, setLightTouchEnabled, setPluginsEnabled
89:	settings.setJavaScriptEnabled(true); 
90:	settings.setPluginsEnabled(true); 
91:	settings.setLightTouchEnabled(true); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: setBuiltInZoomControls, setJavaScriptEnabled
53:	settings.setBuiltInZoomControls(true); 
54:	settings.setJavaScriptEnabled(true); 
55:	WebSettingsAccessor.setAllowUniversalAccessFromFileURLs(settings, true); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: setJavaScriptEnabled, setSaveFormData, setSavePassword, setSupportZoom
49:	webSettings.setSavePassword(false); 
50:	webSettings.setSaveFormData(false); 
51:	webSettings.setJavaScriptEnabled(true); 
52:	webSettings.setSupportZoom(false); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: setBuiltInZoomControls
43:	settings.setBuiltInZoomControls(false); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: setBuiltInZoomControls, setJavaScriptEnabled, setLightTouchEnabled, setLoadWithOverviewMode, setLoadsImagesAutomatically
45:	settings.setLoadsImagesAutomatically(true); 
46:	settings.setUseWideViewPort(true); 
47:	settings.setLoadWithOverviewMode(true); 
48:	settings.setLightTouchEnabled(true); 
49:	settings.setBuiltInZoomControls(true); 
50:	settings.setJavaScriptEnabled(true); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: setJavaScriptEnabled, setLayoutAlgorithm, setSupportZoom
34:	settings.setJavaScriptEnabled(true); 
35:	settings.setSupportZoom(false); 
36:	settings.setLayoutAlgorithm(LayoutAlgorithm.NARROW_COLUMNS); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: setAppCacheEnabled, setJavaScriptEnabled
45:	settings.setJavaScriptEnabled(true); 
46:	settings.setAppCacheEnabled(false); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: setBuiltInZoomControls, setLightTouchEnabled
56:	settings.setLightTouchEnabled(true); 
57:	settings.setBuiltInZoomControls(true); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: setJavaScriptEnabled, setSaveFormData, setSavePassword, setSupportZoom
14:	webSettings.setSavePassword(false); 
15:	webSettings.setSaveFormData(false); 
16:	webSettings.setJavaScriptEnabled(true); 
17:	webSettings.setSupportZoom(true); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setJavaScriptEnabled, setSaveFormData, setSavePassword, setSupportZoom
15:	webSettings.setSavePassword(false); 
16:	webSettings.setSaveFormData(false); 
17:	webSettings.setJavaScriptEnabled(true); 
18:	webSettings.setSupportZoom(true); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setBuiltInZoomControls, setCacheMode, setJavaScriptCanOpenWindowsAutomatically, setJavaScriptEnabled, setSupportZoom
85:	webSettings.setJavaScriptEnabled(true); 
86:	webSettings.setBuiltInZoomControls(true); 
87:	webSettings.setSupportZoom(true); 
88:	webSettings.setCacheMode(WebSettings.LOAD_NO_CACHE); 
89:	webSettings.setJavaScriptCanOpenWindowsAutomatically(true); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getUserAgentString, setJavaScriptEnabled, setUserAgentString
34:	settings.setJavaScriptEnabled(true); 
35:	settings.setUserAgentString(settings.getUserAgentString() + " " 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setJavaScriptEnabled, setSaveFormData, setSavePassword, setSupportZoom
15:	webSettings.setSavePassword(false); 
16:	webSettings.setSaveFormData(false); 
17:	webSettings.setJavaScriptEnabled(true); 
18:	webSettings.setSupportZoom(true); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setBuiltInZoomControls, setCacheMode, setDomStorageEnabled, setJavaScriptEnabled, setSavePassword
30:	webSettings.setCacheMode(WebSettings.LOAD_NO_CACHE); 
31:	webSettings.setBuiltInZoomControls(true); 
32:	webSettings.setJavaScriptEnabled(true); 
33:	webSettings.setPluginsEnabled(true); 
34:	webSettings.setDomStorageEnabled(true); 
35:	webSettings.setUserAgentString("wp-android-native"); 
36:	webSettings.setSavePassword(false); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setJavaScriptEnabled, setSaveFormData, setSavePassword, setSupportZoom
15:	webSettings.setSavePassword(false); 
16:	webSettings.setSaveFormData(false); 
17:	webSettings.setJavaScriptEnabled(true); 
18:	webSettings.setSupportZoom(true); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setJavaScriptEnabled, setSaveFormData, setSavePassword, setSupportZoom
16:	webSettings.setSavePassword(false); 
17:	webSettings.setSaveFormData(false); 
18:	webSettings.setJavaScriptEnabled(true); 
19:	webSettings.setSupportZoom(false); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setJavaScriptEnabled, setSaveFormData, setSavePassword, setSupportZoom
15:	webSettings.setSavePassword(false); 
16:	webSettings.setSaveFormData(false); 
17:	webSettings.setJavaScriptEnabled(true); 
18:	webSettings.setSupportZoom(true); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setAppCacheEnabled, setCacheMode, setDefaultZoom, setLoadWithOverviewMode, setSavePassword
165:	settings.setSavePassword(false); 
166:	settings.setCacheMode(WebSettings.LOAD_NO_CACHE); 
167:	settings.setAppCacheEnabled(false); 
168:	settings.setUseWideViewPort(true); 
169:	settings.setLoadWithOverviewMode(true); 
170:	settings.setDefaultZoom(WebSettings.ZoomDensity.FAR); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setJavaScriptEnabled, setSaveFormData, setSavePassword, setSupportZoom
19:	webSettings.setSavePassword(false); 
20:	webSettings.setSaveFormData(false); 
21:	webSettings.setJavaScriptEnabled(true); 
22:	webSettings.setSupportZoom(false); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setDefaultTextEncodingName, setJavaScriptEnabled, setSaveFormData, setSavePassword, setUseWideViewPort
43:	settings.setSavePassword( false ); 
44:	settings.setSaveFormData( false ); 
45:	settings.setJavaScriptEnabled( false ); 
46:	settings.setUseWideViewPort( false ); 
47:	settings.setDefaultTextEncodingName( P_ENCODING ); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setJavaScriptEnabled, setSaveFormData, setSavePassword, setSupportZoom
14:	webSettings.setSavePassword(false); 
15:	webSettings.setSaveFormData(false); 
16:	webSettings.setJavaScriptEnabled(true); 
17:	webSettings.setSupportZoom(true); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setJavaScriptEnabled, setSaveFormData, setSavePassword, setSupportZoom
22:	webSettings.setSavePassword(false); 
23:	webSettings.setSaveFormData(false); 
24:	webSettings.setJavaScriptEnabled(true); 
25:	webSettings.setSupportZoom(false); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setAllowFileAccess, setAppCacheEnabled, setAppCacheMaxSize, setAppCachePath, setCacheMode
116:	settings.setAppCachePath(mCachePath); 
117:	settings.setAppCacheMaxSize(BUFFER_SIZE); 
118:	settings.setAppCacheEnabled(true); 
119:	settings.setAllowFileAccess(true); 
120:	settings.setCacheMode(WebSettings.LOAD_NO_CACHE); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setJavaScriptEnabled, setSaveFormData, setSavePassword, setSupportZoom
15:	webSettings.setSavePassword(false); 
16:	webSettings.setSaveFormData(false); 
17:	webSettings.setJavaScriptEnabled(true); 
18:	webSettings.setSupportZoom(true); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setJavaScriptEnabled, setSaveFormData, setSavePassword, setSupportZoom
21:	webSettings.setSavePassword(false); 
22:	webSettings.setSaveFormData(false); 
23:	webSettings.setJavaScriptEnabled(true); 
24:	webSettings.setSupportZoom(false); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setCacheMode, setJavaScriptEnabled, setSavePassword
30:	settings.setSavePassword(false); 
31:	settings.setJavaScriptEnabled(true); 
32:	settings.setCacheMode(WebSettings.LOAD_NO_CACHE); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setJavaScriptEnabled, setSaveFormData, setSavePassword, setSupportZoom
18:	webSettings.setSavePassword(false); 
19:	webSettings.setSaveFormData(false); 
20:	webSettings.setJavaScriptEnabled(true); 
21:	webSettings.setSupportZoom(true); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setJavaScriptEnabled, setSaveFormData, setSavePassword, setSupportZoom
21:	webSettings.setSavePassword(false); 
22:	webSettings.setSaveFormData(false); 
23:	webSettings.setJavaScriptEnabled(true); 
24:	webSettings.setSupportZoom(false); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setJavaScriptEnabled, setSaveFormData, setSavePassword, setSupportZoom
22:	webSettings.setSavePassword(false); 
23:	webSettings.setSaveFormData(false); 
24:	webSettings.setJavaScriptEnabled(true); 
25:	webSettings.setSupportZoom(false); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setAllowFileAccess, setJavaScriptCanOpenWindowsAutomatically, setJavaScriptEnabled, setSupportMultipleWindows, setPluginsEnabled
81:	settings.setJavaScriptEnabled(true); 
82:	settings.setPluginsEnabled(true); 
83:	settings.setAllowFileAccess(true); 
84:	settings.setJavaScriptCanOpenWindowsAutomatically(true); 
85:	settings.setSupportMultipleWindows(true); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setJavaScriptEnabled, setSaveFormData, setSavePassword, setSupportZoom
22:	webSettings.setSavePassword(false); 
23:	webSettings.setSaveFormData(false); 
24:	webSettings.setJavaScriptEnabled(true); 
25:	webSettings.setSupportZoom(false); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setEnableSmoothTransition, setJavaScriptEnabled, setSaveFormData
29:	settings.setJavaScriptEnabled(true); 
-
31:	settings.setEnableSmoothTransition(true); 
32:	settings.setSaveFormData(true); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setJavaScriptEnabled, setSaveFormData, setSavePassword, setSupportZoom
22:	webSettings.setSavePassword(false); 
23:	webSettings.setSaveFormData(false); 
24:	webSettings.setJavaScriptEnabled(true); 
25:	webSettings.setSupportZoom(false); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setJavaScriptEnabled, setLoadWithOverviewMode, setUseWideViewPort
181:	webSettings.setJavaScriptEnabled(true); 
182:	webSettings.setUseWideViewPort(true); 
183:	webSettings.setLoadWithOverviewMode(false); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setJavaScriptEnabled, setSaveFormData, setSavePassword, setSupportZoom
22:	webSettings.setSavePassword(false); 
23:	webSettings.setSaveFormData(false); 
24:	webSettings.setJavaScriptEnabled(true); 
25:	webSettings.setSupportZoom(false); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setBuiltInZoomControls, setDefaultZoom, setLoadWithOverviewMode, setRenderPriority, setSupportZoom
30:	appViewSett.setRenderPriority( RenderPriority.HIGH ); 
31:	appViewSett.setBuiltInZoomControls(false); 
32:	appViewSett.setSupportZoom(false); 
33:	appViewSett.setDefaultZoom(WebSettings.ZoomDensity.FAR); 
34:	appViewSett.setUseWideViewPort(true); 
35:	appViewSett.setLoadWithOverviewMode(true); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setJavaScriptEnabled, setSaveFormData, setSavePassword, setSupportZoom
22:	webSettings.setSavePassword(false); 
23:	webSettings.setSaveFormData(false); 
24:	webSettings.setJavaScriptEnabled(true); 
25:	webSettings.setSupportZoom(false); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setJavaScriptEnabled, setSaveFormData, setSavePassword, setSupportZoom
23:	webSettings.setSavePassword(false); 
24:	webSettings.setSaveFormData(false); 
25:	webSettings.setJavaScriptEnabled(true); 
26:	webSettings.setSupportZoom(false); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setAppCacheEnabled, setDatabaseEnabled, setDatabasePath, setDomStorageEnabled, setJavaScriptEnabled
39:	webSettings.setAppCacheEnabled(true); 
-
41:	webSettings.setDatabaseEnabled(true); 
42:	webSettings.setJavaScriptEnabled(true); 
43:	webSettings.setDomStorageEnabled(true); 
-
47:	webSettings.setDatabasePath(databasePath); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setJavaScriptEnabled, setSaveFormData, setSavePassword, setSupportZoom
37:	webSettings.setSavePassword(false); 
38:	webSettings.setSaveFormData(false); 
39:	webSettings.setJavaScriptEnabled(true); 
40:	webSettings.setSupportZoom(false); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setAppCacheEnabled, setAppCacheMaxSize, setAppCachePath, setDatabaseEnabled, setDatabasePath
31:	webSettings.setJavaScriptEnabled(true); 
-
34:	webSettings.setDomStorageEnabled(true); 
35:	webSettings.setAppCacheEnabled(true); 
36:	webSettings.setAppCachePath(getCacheDir().getAbsolutePath()); 
37:	webSettings.setAppCacheMaxSize(1 * 1024 * 1024); 
-
41:	webSettings.setDatabaseEnabled(true); 
42:	webSettings.setDatabasePath("/data/data/" + getPackageName() + "/databases"); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setCacheMode, setJavaScriptEnabled, setSaveFormData, setSavePassword, setSupportZoom
75:	webSettings.setSavePassword(false); 
76:	webSettings.setSaveFormData(false); 
77:	webSettings.setJavaScriptEnabled(false); 
78:	webSettings.setSupportZoom(false); 
79:	webSettings.setCacheMode(WebSettings.LOAD_NO_CACHE); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setCacheMode, setDomStorageEnabled, setJavaScriptEnabled, setLightTouchEnabled, setRenderPriority
65:	webSettings.setJavaScriptEnabled( true ); 
66:	webSettings.setDomStorageEnabled( true ); 
67:	webSettings.setLightTouchEnabled( true ); 
68:	webSettings.setRenderPriority( RenderPriority.HIGH ); 
69:	webSettings.setCacheMode(WebSettings.LOAD_NO_CACHE); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setAllowFileAccess, setJavaScriptEnabled, setPluginState, setPluginsEnabled
153:	settings.setJavaScriptEnabled(true); 
154:	settings.setPluginsEnabled(true); 
155:	settings.setAllowFileAccess(false); 
156:	settings.setPluginState(WebSettings.PluginState.ON); 
Full Snippet Info
6
CodeRank
Related Android WebSettings Questions & Answers:
See Code Examples for Android WebSettings Methods: