private class MyWebViewDownLoadListener implements DownloadListener { @Override public void onDownloadStart(String url, String userAgent, String contentDisposition, String mimeType, long contentLength) { DialogUtils.alertMakeSureDialog(getContext(), StringUtils.getString(R.string.download_file_make_sure_hint), () -> { ToastUtils.showShort(R.string.download_notice_hint); String fileName = URLUtil.guessFileName(url, contentDisposition, ""); if (fileName == null) { String fileName1 = url.trim().substring(url.trim().lastIndexOf("/") + 1); mPresenter.downloadFile(fileName1, url); } else { mPresenter.downloadFile(fileName,
调用系统内置浏览器下载文件
最新推荐文章于 2024-06-04 09:59:28 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)