Android Question Webview refresh

Discussion in 'Android Questions' started by hibrid0, Aug 6, 2019.

  1. hibrid0

    hibrid0 Active Member Licensed User

    Hi I want to refresh a webview.

    The webview load html file from file.dirinternal, the user select a picture, the picture as the logo, I copied the picture to the file.dirinternal.

    I try to webview.invalidate and next webview.loadhtml, bit the images logo is the same.
    Try to remove the webview, re add with activity.addview and webview.loadhtml.,same result, the logo image is the same.

    Try to set cache mode off.

    If I close the app and reopen, the logo take the change.
  2. JohnC

    JohnC Well-Known Member Licensed User

    If you use WebViewSettings library, there are a couple of different cache modes:

    Did you try them all?
    MarkusR likes this.
  3. hibrid0

    hibrid0 Active Member Licensed User

    Thanks for your reply, I try with Load_no_cache
  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