问题
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