开发者

Android - browser and download notification

开发者 https://www.devze.com 2023-02-07 02:51 出处:网络
If I use \"intent\" to download a file with Android browser like tha开发者_JAVA技巧t: Intent downloadIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(\"http://myserver.com/picture1.jpg\"));

If I use "intent" to download a file with Android browser like tha开发者_JAVA技巧t:

Intent downloadIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("http://myserver.com/picture1.jpg"));
startActivity(downloadIntent);

Can I catch some event when the browser finish the download?


No, you will have to implement your own WebView. Once you have done so, you must set a WebViewClient and overwrite the onPageFinished method.

0

精彩评论

暂无评论...
验证码 换一张
取 消