如果我像这样使用“intent”通过 Android 浏览器下载文件:
Intent downloadIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("http://myserver.com/picture1.jpg"));
startActivity(downloadIntent);
我可以在浏览器完成下载时捕获一些事件吗?
最佳答案
不,您必须实现自己的 WebView
。一旦你这样做了,你必须设置一个 WebViewClient
并覆盖 onPageFinished
方法。
关于java - Android - 浏览器和下载通知,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4832084/