WebView loadUrl works only once

后端 未结 14 1748
长情又很酷
长情又很酷 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:47

    In onCreate, instead of using wv.loadUrl(Constants.BLOG_URL); , just use wv.loadDataWithBaseURL(baseUrl, readFileAsString("index.html") , mimeType, "UTF-8", null);

提交回复
热议问题