Android WebView not loading second page from cache

后端 未结 5 1293

I have an Android app that simply houses a website. I would like the app to cache the pages of the website for offline use.

I\'m doing a simple test to see if the cache

5条回答
  •  野性不改
    2021-02-05 21:12

    Its little Silly that this works. There is a redirect in URL from

    http://www.bmimobile.co.uk/ to http://www.bmimobile.co.uk/index.php

    You Should try

    webView.loadUrl("http://www.bmimobile.co.uk/why-bmi.php", getHeaders()); webView.loadUrl("http://www.bmimobile.co.uk/index.php", getHeaders());

提交回复
热议问题