WebView loadUrl works only once

后端 未结 14 1740
长情又很酷
长情又很酷 2020-12-14 01:49

EDIT: I worked on this project years ago and unfortunately I cannot verify if any of the answers is working in the given scenario.

I am having hard time with one Web

14条回答
  •  粉色の甜心
    2020-12-14 02:25

    Try to load a blank page before:

    wv.loadUrl("about:blank");
    wv.clearHistory();
    wv.clearView();
    wv.loadUrl(Constants.BLOG_URL);
    

    Edit: This is a code I used before because I had problems with this too, please try it.

提交回复
热议问题