Android Question Correct way to Load a Webview without cache

Discussion in 'Android Questions' started by DawningTruth, Apr 13, 2019.

  1. DawningTruth

    DawningTruth Active Member Licensed User

    I have been trying to setup my webviews to load without a cache. The libraries are not making sense to me. Please assist:

    Code:
    Dim webSettings1 As WebSettings
    webSettings1.LOAD_NO_CACHE = 
    2

    'How do I link this to my webview?
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    Code:
    Dim wve As WebViewExtras2
    wve.Initialize(WebView1)
    wve.GetSettings.LOAD_NO_CACHE = 
    2
     
    DawningTruth likes this.
  3. DawningTruth

    DawningTruth Active Member Licensed User

    Thx Erel.
     
  4. DawningTruth

    DawningTruth Active Member Licensed User

    Get the following error:

    Code:
    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);
     
  5. Erel

    Erel Administrator Staff Member Licensed User

    DawningTruth likes this.
  6. DawningTruth

    DawningTruth Active Member Licensed User

    Thx works now. Find that API documentation a bit confusing without examples. At least I now have an example I can emulate :).
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice