开发者

Is there anyway I can use a BroadcastReceiver to catch DownloadManager.ACTION_DOWNLOAD_COMPLETE in Android?

开发者 https://www.devze.com 2023-04-07 06:16 出处:网络
I am working on an android application which is related to security. It is about scanning an application after it is downloaded from android market.

I am working on an android application which is related to security. It is about scanning an application after it is downloaded from android market.

Is there anyway I can use a BroadcastReceiver to catch DownloadManager.ACTION_DOWNLOAD_COMPLETE?

I checked a couple of article but at time now the api's are hidden. Is there anyway I can use re开发者_开发技巧flection method or something like to do this?


look at this example

you need to use downloadManager class which is available in api 9 or above which calls a broadcast receiver on completion.

http://www.vogella.de/blog/2011/06/14/android-downloadmanager-example/

0

精彩评论

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