D DawningTruth Active Member Licensed User Apr 13, 2019 #1 I have been trying to setup my webviews to load without a cache. The libraries are not making sense to me. Please assist: B4X: Dim webSettings1 As WebSettings webSettings1.LOAD_NO_CACHE = 2 'How do I link this to my webview?
I have been trying to setup my webviews to load without a cache. The libraries are not making sense to me. Please assist: B4X: Dim webSettings1 As WebSettings webSettings1.LOAD_NO_CACHE = 2 'How do I link this to my webview?
Erel B4X founder Staff member Licensed User Longtime User Apr 14, 2019 #2 B4X: Dim wve As WebViewExtras2 wve.Initialize(WebView1) wve.GetSettings.LOAD_NO_CACHE = 2 Upvote 0
D DawningTruth Active Member Licensed User Apr 14, 2019 #3 Erel said: B4X: Dim wve As WebViewExtras2 wve.Initialize(WebView1) wve.GetSettings.LOAD_NO_CACHE = 2 Click to expand... Thx Erel. Upvote 0
Erel said: B4X: Dim wve As WebViewExtras2 wve.Initialize(WebView1) wve.GetSettings.LOAD_NO_CACHE = 2 Click to expand... Thx Erel.
D DawningTruth Active Member Licensed User Apr 14, 2019 #4 DawningTruth said: Thx Erel. Click to expand... Get the following error: B4X: webViewExtras1.GetSettings.LOAD_NO_CACHE = 2 javac 1.8.0_131 src\b4a\example\project.java:959: error: cannot assign a value to final variable LOAD_NO_CACHE _webViewExtras1.GetSettings().LOAD_NO_CACHE = (int) (2); Upvote 0
DawningTruth said: Thx Erel. Click to expand... Get the following error: B4X: webViewExtras1.GetSettings.LOAD_NO_CACHE = 2 javac 1.8.0_131 src\b4a\example\project.java:959: error: cannot assign a value to final variable LOAD_NO_CACHE _webViewExtras1.GetSettings().LOAD_NO_CACHE = (int) (2);
Erel B4X founder Staff member Licensed User Longtime User Apr 14, 2019 #5 Try this: B4X: Dim wve As WebViewExtras2 wve.Initialize(WebView1) Dim settings As WebSettings = wve.GetSettings settings.SetCacheMode(settings.LOAD_NO_CACHE) https://www.b4x.com/android/help/webviewextras2.html#websettings_setcachemode Upvote 0
Try this: B4X: Dim wve As WebViewExtras2 wve.Initialize(WebView1) Dim settings As WebSettings = wve.GetSettings settings.SetCacheMode(settings.LOAD_NO_CACHE) https://www.b4x.com/android/help/webviewextras2.html#websettings_setcachemode
D DawningTruth Active Member Licensed User Apr 14, 2019 #6 Erel said: Try this: B4X: Dim wve As WebViewExtras2 wve.Initialize(WebView1) Dim settings As WebSettings = wve.GetSettings settings.SetCacheMode(settings.LOAD_NO_CACHE) https://www.b4x.com/android/help/webviewextras2.html#websettings_setcachemode Click to expand... Thx works now. Find that API documentation a bit confusing without examples. At least I now have an example I can emulate . Upvote 0
Erel said: Try this: B4X: Dim wve As WebViewExtras2 wve.Initialize(WebView1) Dim settings As WebSettings = wve.GetSettings settings.SetCacheMode(settings.LOAD_NO_CACHE) https://www.b4x.com/android/help/webviewextras2.html#websettings_setcachemode Click to expand... Thx works now. Find that API documentation a bit confusing without examples. At least I now have an example I can emulate .