我试图在加载WebView时进入Android网页的文件。我找不到任何方法可以在Android文档中获取文件化...
https://developer.android.com/reference/android/webkit/webview.html https://developer.android.com/reference/android/webkit/webviewclient.html https://developer.android.com/reference/android/webkit/webchromeclient.html
此外,解析HTML的解决方案以串联,在图像,CSS等之后下载。使用httpurlconnection并获得其尺寸对我来说听起来不好。有什么想法吗?
如果您有文件,则可以使用file.length((属性获取文件大小。
您也可以检查此链接。在Android