==================== Problem Description ====================
RT, which is essentially designed to prevent web page images from loading, place images locally, and then replace them in the app to speed up the response.
Previously mentioned this problem, failed to solve, Because more than 3.0 to provide the interface to replace the Web resources (webresourceresponse), 3.0 does not have a dedicated interface, I want to use get to save the page as a string and then replace, but found that not all pages can use get Fetch (many pages are reported exception, including some links in Baidu) , studied for some time, thought cannot realize, gave up.
Today, suddenly found a game, called Bahamut's anger, the discovery is also a web game, the image loading super-fast, and then anti-compilation, found that there are a large number of images in the app ... It was only then that the thing could be realized.
So I ask you, Daniel, can you provide some ideas, this thing exactly how to achieve--| |
==================== Solution 1====================
You're not anti-compilation, so you see how it's going to come true.
When Android WebView load a webpage, replace the picture inside the page with a local picture