how to get notification (broadcast, intent) on browser download completion in android

做~自己de王妃 提交于 2019-12-13 03:44:13

问题


how to be notified (via some broadcast or intent) on a completion of a download initiated by user from web browser and other apps? (like email client, bluetooth, etc).
I need this as I want to perform some action on each newly file downloaded by the user.
It seems to me that this is possible as some antivirus apps do similar things.
I tried to use broadcast receiver with intent filter set to DownloadManager.ACTION_DOWNLOAD_COMPLETE action, but this way I get notified only about downloads from my own app.

Thanks!


回答1:


Is there a way to be notified (via some broadcast or intent) on a completion of a download initiated by user from web browser and other apps? (like email client, bluetooth, etc).

Fortunately, no, for obvious privacy and security reasons.



来源:https://stackoverflow.com/questions/11217005/how-to-get-notification-broadcast-intent-on-browser-download-completion-in-an

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!