java WebView.setDownloadListener(new DownloadListener() { [@Override](https://my.oschina.net/u/1162528) public void onDownloadStart(String url, String userAgent, String contentDisposition, String mimetype, long contentLength) { Uri uri = Uri.parse(url); Intent intent = new Intent(Intent.ACTION_VIEW, uri); startActivity(intent); } });
转载于:https://my.oschina.net/u/3208918/blog/870746