3
내 앱에서 다른 이미지를로드하는 webview가있는 활동이 있습니다. webview를로드하기 전에 이미지가 이미 webview 캐시에 캐시되어 있는지 알아야합니다.파일이 이미 webview 캐시에 있는지 확인하십시오. android
String uri = "http://the url of the image that you need";
String hashCode = String.format("%08x", uri.hashCode());
File file = new File(new File(getCacheDir(), "webviewCache"), hashCode);
// if the call file.exist() returns true, then the file presents in the cache
"
Is it possible to access the WebView cache?"포스트에서
하지만 모든 장치에 대한 해결책을 찾기 위해 싶습니다, 그래서 어떤 도움이 이해할 수있을 것이다 ... 월 웹보기 : 나는 2.3 안드로이드 장치와 낮은이 작업 솔루션을 찾았습니다 캐시 디렉토리가 변경 되었습니까? 감사합니다.
WebView에서 파일을 수동으로 저장하는 방법은 무엇입니까? – Xiaozou
여기에 코드를 올리시겠습니까? –