What I want to achieve is this:
Then I intercept the request in WebViewClient and execute the custom loading process.
Now index.html can load normally, but css and js referenced in html, such as this:
<link rel="stylesheet" href="css/app.css" type="text/css" media="screen">
Unable to load normally, the request cannot be intercepted at all.
How to solve it?
The problem is solved, it is the mimetype problem, write a tool to analyze mimetype through url, and fill in mimetype when generating response.